- 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 minutes for a specified date according to universal time.
JavaScript date setUTCMinutes() method sets the minutes for a specified date according to universal time.
The following are the parameters for setUTCMinutes(minutesValue[, secondsValue[, msValue]]) method −
- minutesValue − An integer between 0 and 59, representing the minutes.
- secondsValue − An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
- msValue − A number between 0 and 999, representing the milliseconds. If you specify the msValue parameter, you must also specify the minutesValue and secondsValue.
Example
You can try to run the following code to set the minutes for a specified date according to universal time −
<html> <head> <title>JavaScript setUTCMinutes Method</title> </head> <body> <script> var dt = new Date( "Aug 28, 2008 13:30:00" ); dt.setUTCMinutes( 85 ); document.write( dt ); </script> </body> </html>
Advertisements