TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jes Sie
736
1.2k
284.3k
How to format textbox to date without the time (12:00 AM)
Oct 17 2016 8:19 AM
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.
Reply
Answers (
9
)
stored procedure in asp.net
Display username