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
Shweta68
1.6k
100
8.4k
Remove Datetime By query to show inLabel or Textbox
Aug 24 2018 1:17 PM
Hello
I have a column RegDate(Datetime). When I select it by query then it gives me data like : 2018-08-23 23:42:48.300
I need to display the Date only. For this I write following code its working properly.
string RegDate = dt1.Rows[0]["RegDate"].ToString();
DateTime dRegDate = Convert.ToDateTime(RegDate);
lblRegDate.Text = dRegDate.ToString("dd MMM yyyy");
Can I solve it in one line or I can change it by query?
Kindly help me.
Reply
Answers (
4
)
Multiple conditions to be check in stored procedure
How to keep any decimal number after aritmetic operations