date.getUTCmonth Method javaScript With Example

date.getUTCmonth Method javaScript With Example

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

JavaScript: Date.getUTCMonth() Method

Definition:- Javascript date getUTCMonth() method is used to get the month for the specified date according to universal time. The getUTCMonth method will return an integer value between 0 and 11.


The syntax is date.getUTCMonth method is:


Note: January is 0, February is 1, and so on.


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

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

Result of the above code is

JavaScript date.getUTCMonth Method


In this javascript tutorial, you have learned how to get a month using getUTCMonth function with example.

You may like

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

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

AuthorTuts Make

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Javascript, JQuery, Laravel, Livewire, Codeigniter, Vue JS, Angular JS, React Js, WordPress, 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 *