- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set the month for a specified date according to universal time.
JavaScript date setUTCMonth ( ) method sets the month for a specified date according to universal time.
The following is the parameter of setUTCMonth ( monthvalue ) method in JavaScript −
- monthValue − An integer between 0 and 11, representing the month.
Example
You can try to run the following code to set the month for a specified date according to universal time −
<html> <head> <title>JavaScript getUTCSeconds Method</title> </head> <body> <script> var dt = new Date( "Aug 28, 2008 13:30:00" ); dt.setUTCMonth( 2 ); document.write( dt ); </script> </body> </html>
- Related Articles
- Set the day of the month for a specified date according to universal time?
- Set the milliseconds for a specified date according to universal time.
- Set the seconds for a specified date according to universal time.
- Set the minutes for a specified date according to universal time.
- Set the hour for a specified date according to universal time?
- Set the full year for a specified date according to universal time.
- How to return the day of the week in the specified date according to universal time?
- How to convert a date to a string using the universal time convention?
- How to set default date time as system date time in MySQL?
- Java Program to return a Date set to the last possible millisecond of the month before midnight
- Java Program to return a Date set to the first possible millisecond of the month after midnight
- Set current date and time to timestamp in MySQL
- What is the universal set and complement of a set?
- How to set the xticklabels for date in matplotlib?
- Set the Date and Time with Gregorian Calendar in Java

Advertisements