get server datetime in asp.net c#

Posted by Jahi under ASP.NET on 4/16/2011 | Points: 10 | Views : 8514 | Status : [Member] | Replies : 1
hi sir,

How can i get server datetime at the time of registration in my website using asp.net c#?




Responses

Posted by: SheoNarayan on: 4/16/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Use below code

var serverDateTime =  DateTime.Now;


Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

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

Login to post response