I pick some date and time in javascript and then want to store it on server (.NET). Dates are supposed to be in future from the current moment (so they won\'t be before 1970). H
I hope it will helpful to you.
Summary About toISOString()
:-
The toISOString()
method returns a string in ISO format (ISO 8601 Extended Format), which can be described as follows: YYYY-MM-DDTHH:mm:ss.sssZ
. The timezone is always UTC as denoted by the suffix "Z".
Refer Below link for more information about toISOString()
.
Date.prototype.toISOString()
Summary About toUTCString()
:-
The toUTCString()
method converts a date to a string, using the UTC time zone.
Refer Below link for more information about toUTCString()
Date.prototype.toUTCString()