getUTCMinutes() to read Minutes of GMTBy using getUTCMinutes() function we can read minutes part of the UTC time. Here is a sample code.
<script type="text/javascript">
var dt= new Date();
document.write("using getutcMinutes : ");
document.write(dt.getUTCMinutes());
</script>
The output is here
This is the minutes part of the GMT.
Difference in these two times by using getTimezoneOffset() function
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
plus2net.com
|