date conversion problem in c#

Posted by Klbaiju under ASP.NET on 7/10/2013 | Points: 10 | Views : 1018 | Status : [Member] | Replies : 1
Hi all,
I want to convert a date in to another format.
in my application date is coming from another field like 21 jul 2013 in to a textbox
I want to convert this date in to 2013-07-21.
I have tried several method .which is correct method to solve this

Regards
Baiju




Responses

Posted by: Venky.Net on: 7/10/2013 [Member] Starter | Points: 25

Up
0
Down
you using this format

string date=convert.todatetime(txtbox1.text).tostring("yyyy/MM/dd");

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response