Friday, February 10, 2012

Get date and time of server

 DateTime time = DateTime.Now;              
 
string format = "MMM ddd d HH:mm yyyy";

 
var dt = time.ToString(format);
Here we display time and date using label or Textbox. 

No comments:

Post a Comment