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??
5 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rafnas T PPosted Apr 19, 2018, 4:37 AM
Bharathi RajaPosted Apr 7, 2018, 5:49 AM
Rafnas T PPosted Apr 7, 2018, 2:03 AM
Rafnas T PPosted Apr 7, 2018, 1:57 AM
Piyush PansuriyaPosted Apr 7, 2018, 12:57 AM