String is not recognized as valid date time
Hi,
I am working in an asp.net application(Version 1.1) in which i am using DateTime.Now.ToShortDateTimestring() to get the system date and displaying in a text box. The date format that is set in the System is "MM/DD/YYYY".
Some times i am getting a weird date as "15-03-06" instead of "03/15/2006" and the system is throwing "String is not recognized as valid date time" error when converting to a datetime using Convert.ToDate().
The error is not coming all the times.
Any help.
Thanks in Advance.