Convert time to a UTC Date : UTC Date « Date Time « JavaScript DHTML

Convert time to a UTC Date

<button onclick="var myDate = new Date(); alert(Date.UTC(myDate));">UTC</button>


Related examples in the same category

1.Get UTC Day
2.Get UTC Date
3.Get UTC Seconds
4.Get UTC Month
5.Get UTC Minutes
6.Get UTC Milliseconds
7.Get UTC Hours
8.Set UTC Hours
9.Set UTC Full Year
10.Set UTC Date
11.Set UTC Seconds
12.Set UTC Month
13.Set UTC Minutes
14.Set UTC Milliseconds
15.Convert Date to UTC String