JavaScript: Date setUTCDate() Method

JavaScript: Date setUTCDate() Method

setUTCDate method in javascript. In this tutorial, we will explain how to set utc date in javascript with example.

JavaScript setUTCDate() Method

Javascript setUTCDate() method, which is used to sets the day of the month for a specified date according to universal time.



Note :- day_value − it is an integer value from 1 to 31. This is representing the day of the month.


<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>JavaScript date.setUTCDate Method</title>
  <script type = "text/javascript">
     var date = new Date( "Nov 24, 2019 22:32:50" );
     date.setUTCDate( 20 );
     document.write( "The javascript date.setUTCDate() : " + date );

Result of the above code is

JavaScript date.setUTCDate Method


In this javascript set UTC date tutorial, you have learned how to set UTC date javascript with example.

You may like

  1. JavaScript: Date.getUTCDate() Method
  2. javaScript: getUTCFullYear Method
  3. getUTCMonth Method in JavaScript
  4. javaScript: getUTCDay() Method By E.g.
  5. Get UTC Hours, Minutes, Seconds, MilliSeconds javascript
  6. javaScript Digital Clock with date
  7. JavaScript: Set Date Methods
  8. String Contains JavaScript | String includes() Method
  9. JavaScript Get Date Methods
  10. JavaScript Operators With Examples
  11. Sorting Using JavaScript Array Sort() Method
  12. JavaScript Replace String With Examples
  13. JavaScript Array splice() Method By Example
  14. JavaScript: Clone an Array & Object By Example

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 *