Hi,
I need to convert a date from DD/MM/YYYY to YYYY-MM-DD, in order to be
able to properly query it in an sql database.
How can i go about doing this with C#?
Thanks
msnews.microsoft.com - 03 Aug 2005 11:25 GMT
DateTime now = DateTime.Now;
string s = now.ToString("yyyy-MM-dd");
> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks
Assimalyst - 03 Aug 2005 11:37 GMT