CodesJava

Easy learning with example program codes

JavaScript JS Date getUTCDate() method


The JavaScript date getUTCDate() method is used to get the integer value between 1 and 31 that represents the day for the particular date based on the universal time.

Syntax:

dateObj.getUTCDate()
Example:

<!DOCTYPE html>
<html>
<body>
<script>   	 
var today = new Date(); 	 
document.writeln(today.getUTCDate());   
</script>  
</body>
</html>

Output:

21
Please follow and like us:


Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki