August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.getUTCDate()
The getUTCDate() method returns the day of the month converted to universal time and expressed as an integer from 1 to 31.
The code in Listing 6.81 displays the day of the month in universal time using the getUTCDate() method.
<html>
<script language="JavaScript">
<!-- Hide
//Create a Date object that contains the current date and time.
theDate = new Date();
//Display the UTC date
document.write("The UTC date is ",theDate.getUTCDate());
//Hide End -->
</script>
</html>
|
Read now
Unlock full access