Related with time conversion

Posted by Amritha444 under C# on 10/19/2010 | Points: 10 | Views : 1171 | Status : [Member] | Replies : 1
my localhost time format following indian, todays date is 19-10-2010 and selected showing the same date.But my system host at server which showing one day back ie,18-10-2010.How to convert time into standard format.In my project selecting a date from calendar and the corresponding textbox showing the date like
txtDate.Text = clsSystem.GetDate(Convert.ToDateTime(DateTime.Now.ToShortDateString()));
how to convert this in to standard format which when i upload in the server shows the same as local host
Thanks in Advance


Posted by: T.saravanan on: 10/19/2010 [Member] [MVP] Silver | Points: 25

Hi Amritha,
Refer this link.

My suggestion, the date control is user selection means first you can set empty in your date control after user can select the date from calendar control.


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

Login to post response