JavaScript: Date.getUTCDate() Method| JavaScript Tutorial

JavaScript: Date.getUTCDate() Method| JavaScript Tutorial

JavaScript: Date.getUTCDate() method. In this tutorial, you will learn how to get UTC date in javascript with an example.

JavaScript: Date.getUTCDate() Method

Definition:- Javascript date getUTCDate() method is used to get the day of the month in the specified date according to universal time. The getUTCDate method will return an integer value between 1 and 31.

Syntax

The syntax is date.getUTCDate method is:

 Date.getUTCDate()

Note

Know about getUTCDate, Returns the day of the month in the specified date according to universal time.

Example

Now we will take an example of javascript getUTCDate() method:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JavaScript date.getUTCDate Method</title>
</head>
<body>
  <script type = "text/javascript">
     var currentDate = new Date();
     document.write("the javascript date.getUTCDate() : " + currentDate.getUTCDate() ); 
  </script>  
</body>
</html>

Result of the above code is

JavaScript date.getUTCDate Method

Conclusion

In this javascript tutorial, you have learned getUTCDate function with example.

You may like

  1. javaScript Digital Clock with date
  2. JavaScript: Set Date Methods
  3. String Contains JavaScript | String includes() Method
  4. JavaScript Get Date Methods
  5. JavaScript Operators With Examples
  6. Sorting Using JavaScript Array Sort() Method
  7. JavaScript Replace String With Examples
  8. JavaScript Array splice() Method By Example
  9. JavaScript: Clone an Array & Object By Example
  10. Check the Object is Array or not in javascript
  11. JavaScript: Convert String to Array JavaScript
  12. javaScript Push() Array By Example
  13. javaScript Push Array, Items Into Array Example
  14. JavaScript: Important Array Methods

If you have any questions or thoughts to share, use the comment form below to reach us.

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *