Tutorial Gateway

  • C Language
  • Java
  • R
  • SQL
  • MySQL
  • Python
  • BI Tools
    • Informatica
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • QlikView
  • Js

JavaScript getUTCDate Function

by suresh

JavaScript getUTCDate function is one of the Date Function, which returns the day of the month on a given date according to universal time.

JavaScript getUTCDate Function Example

In this example, we are using getUTCDate to return the day number of the month in the current date and time.

<!DOCTYPE html>
<html>
<head>
    <title> JavaScript Get UTC Date Function </title>
</head>
<body>
    <h1> JavaScript getUTCDate Function Example </h1>
<script>
  var dt = Date();  
  document.write("Date and Time : " + dt);
  document.write("UTC Date using getUTCDate(): " + dt.getUTCDate());
</script>
</body>
</html>

OUTPUT

JavaScript getUTCDate Function 1

JavaScript get UTC Date Function Example

In this JavaScript getUTCDate function, we are displaying the day number from the custom date

<!DOCTYPE html>
<html>
<head>
    <title> JavaScript Get UTC Date Function </title>
</head>
<body>
    <h1> JavaScript getUTCDate Function Example </h1>
<script>
  var dt = Date("December 14, 2016 11:22:34");
  document.write("Date and Time : " + dt);
  document.write("UTC Date using getUTCDate(): " + dt.getUTCDate());
</script>
</body>
</html>

OUTPUT

JavaScript getUTCDate Function 2

Placed Under: JavaScript

Trending Posts

JavaScript ASIN

Drop Down List Parameters in SSRS

MySQL EXPORT_SET Function

Python Append List Function

SQL Query Builder

JavaScript Slice

Python Program to find GCD of Two Numbers

Format Power BI Stacked Column Chart

Python Program to Put Positive and Negative Numbers in Separate List

SQL @@PACK_RECEIVED

  • C Programs
  • Java Programs
  • SQL FAQ’s
  • Python Programs
  • SSIS
  • Tableau
  • JavaScript

Copyright © 2019 | Tutorial Gateway· All Rights Reserved by Suresh

Home | About Us | Contact Us | Privacy Policy