Sending javascript dates to Asp.NET
I’ve struggled with this at various times and come up with a number of solutions, none of which were entirely satisfying. Now, thanks to Stackoverflow, I found a really nice solution:
Javascript:
obj.date = new Date().toUTCString();
C#:
DateTime date= DateTime.ParseExact(obj.date,
"ddd, MMM d yyyy HH:mm:ss GMT",
CultureInfo.InvariantCulture);