EDN Admin
Well-known member
Hi,
double timestamp = 1113211532;
System.DateTime dateTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
dateTime = dateTime.AddSeconds(timestamp);
string printDate = dateTime.ToShortDateString() + " " + dateTime.ToShortTimeString();
MessageBox.Show(printDate);
Here the 4/11/2005 9.25 AM is the output which i am getting
bur the time format i require is 24 hours time instead of 12 hours time.
please reply me with a solution
View the full article
double timestamp = 1113211532;
System.DateTime dateTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
dateTime = dateTime.AddSeconds(timestamp);
string printDate = dateTime.ToShortDateString() + " " + dateTime.ToShortTimeString();
MessageBox.Show(printDate);
Here the 4/11/2005 9.25 AM is the output which i am getting
bur the time format i require is 24 hours time instead of 12 hours time.
please reply me with a solution
View the full article