i am using
Visual Studio 2008
framework 3.5
12/09/2012 12:18:34 PM this is the exact format datetime stored in my database and i am just fire a query and get the date in my datatable like
lblDatetime.Text = System.Convert.ToString(dt.Rows[0]["Date_Time"]);
it is working well in while developing the application but once i deploy in IIS i am getting the error like string was not recognized as a valid datetime

Balu MatePosted Jun 25, 2015, 5:55 AM
Iftikar HussainPosted Aug 26, 2013, 1:54 AM
Pramod LawatePosted Aug 26, 2013, 1:47 AM
i googled on web they said convert to datetime is not working on IIS. instedof use datetime.parceExtract() function.
Iftikar HussainPosted Aug 26, 2013, 1:39 AM
Pramod LawatePosted Aug 26, 2013, 1:36 AM
short date = dd/MM/yyyy
long date = dddd, MMMM dd, yyyy
short time = h:mm tt
Long time = h:mm:ss tt
Iftikar HussainPosted Aug 26, 2013, 1:21 AM
Have you deployed your application in different timezone server or in your local PC?
Regards,
Iftikar