Home > Article > Web Front-end > Sets the number of minutes for a specified date based on UTC
JavaScript Date setUTCMinutes() Method sets the minutes of the specified date based on world time.
The following are the parameters of setUTCMinutes(minesValue[, secondaryValue)[, msValue]]) method-
<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>
The above is the detailed content of Sets the number of minutes for a specified date based on UTC. For more information, please follow other related articles on the PHP Chinese website!