|
|
getMinutes()We can extract or get the minute parts from the date object by using getMinutes() function. The value will be from 0 to 59. Here is the simple code
var dt= new Date();
document.write(dt.getMinutes());
Here is the output based on your time zone and date and time of your computer
We will get minutes from this date object. We can further work on this minutes part and set it to previous or advance value by using setMinutes function.
| |
| | |
|
|
|
|
|