I want to send data from client and create it on server. So:
1) How can I get the total milliseconds count by JavaScript Date object?
2) How can I create .NET DateTime object by total milliseconds count?
I want to send data from client and create it on server. So: 1)
Share
You will have to use AJAX for this. Once you send the
d.getTime()as explained by the other answer, parse it like this in your C# code behind:After this,
clientSideDatewill be the date on the client side.Edit: using jQuery, posting the date is as simple as: