Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
9
Reply
How to format textbox to date without the time (12:00 AM)
Hold On
Oct 17 2016 8:19 AM
326
Reply
I have a date data from database which the data type is date. I fetch the data from DB using DataSet and populate it to a textbox control. The resulting date contains "data and time - 10/3/2016 12:00 AM". What I wanted is this result (10/3/2016 - where, 10 is day and 3 is month).
below is the snippet of my code:
lblIncepDate.Text = ds.Tables[0].Rows[0]["IncepDate"].ToString();
lblExpDate.Text = ds.Tables[0].Rows[0]["ExpDate"].ToString();
Hope somebody can share a knowledge.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
9
)
Next Recommended Forum
stored procedure in asp.net
Store GUID of image into database.