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
Soumya Ps
NA
148
17.7k
Date Conversion
Apr 7 2018 12:36 AM
I have date in this format
string strdob =Convert.ToDateTime(ddlDay.SelectedValue + "-" + ddlMonth.SelectedValue + "-" + ddlYear.SelectedValue).ToString("yyyy-MM-dd");
Output is like "2017-03-06"
In my database i stored date as {2017-03-06 00:00:00}
I used this ,,DateTime DOBDate = DateTime.Parse(strdob);
but the Result Shows like {06-03-2017 00:00:00}
I want to display it as {2017-03-06 00:00:00}.How can i do it??
Reply
Answers (
5
)
DropDownList autocomplete search and post back
try catch...............