Possible Duplicate:
How to get client date and time in ASP.NET?
I have a ASP.NET web application. My hosting server is in USA. Database is present there.
Anyone can browse the site. Now I want to get the date time of client PC. I will store it in DB and will show it in browser.
I have a label. I will show it in that label
I have searched it in Google. But did not found proper code.
Please give me the C# code.
[I am using asp.net, C#]
Thanks in advance
Rashed
modified code from This link:
At this point i would concatenate all of the fields together and put them in an asp:HiddenField control so they can be read on the server. On the server, call Convert.ToDateTime() on the Text value of your HiddenField.