![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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 day of the month for a specified date according to universal time?
JavaScript date setUTCDate() method sets the day of the month for a specified date according to universal time.
The following is the parameter for setUTCDate(dayValue) −
- dayValue − An integer from 1 to 31, representing the day of the month.
Example
You can try to run the following code to set the day of the month for a specified date −
<html> <head> <title>JavaScript setUTCDate Method</title> </head> <body> <script> var dt = new Date( "Oct 15, 2017 23:30:00" ); dt.setUTCDate( 20 ); document.write( dt ); </script> </body> </html>
Advertisements