JavaScript Reference/Javascript Methods/setMinutes

Материал из Web эксперт
Перейти к: навигация, поиск

"setMinutes()" Example

<button onclick="var myDate = new Date(); myDate.setMinutes(2); alert(myDate);">SETMINUTES</button>

"setMinutes()" is applied to

| Applied_To     |Date                                                          |

"setMinutes()" Syntax, Parameters and Note

Sets the minutes.
dateName.setMinutes(param1, param2, param3)
    param1   Required; the minutes. Value: 0 to 59.
    param2   Optional; the seconds. Value: 0 to 59.
    param3   Optional; the milliseconds elapsed during the current second. 
                       Value: 0 to 999.