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


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 25, 2013, 9:21 PM EDT
Have you deployed your application in different timezone server or in your local PC?
Regards,
Iftikar
Pramod LawateRank #2,377 · 597 reputationPosted Aug 25, 2013, 9:36 PM EDT
short date = dd/MM/yyyy
long date = dddd, MMMM dd, yyyy
short time = h:mm tt
Long time = h:mm:ss tt
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 25, 2013, 9:39 PM EDT
Pramod LawateRank #2,377 · 597 reputationPosted Aug 25, 2013, 9:47 PM EDT
i googled on web they said convert to datetime is not working on IIS. instedof use datetime.parceExtract() function.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 25, 2013, 9:54 PM EDT
Balu Mate14 reputationPosted Jun 25, 2015, 1:55 AM EDT