CodesJava

Easy learning with example program codes

JavaScript JS Date getUTCDay() method


The JavaScript date getUTCDay() method is used to get the integer value between 0 and 6 that represents the day of the week based on the universal time.

Syntax:

dateObj.getUTCDay()

Example:

<!DOCTYPE html>
<html>
<body>
<script>  
var a = [100,40,678,435,890];  
var greatest = Math.max.apply(null, a);  
document.writeln(greatest);  
</script>  
</body>
</html>

Output:

890
Please follow and like us:


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