YouTip LogoYouTip

Jsref Getminutes

# JavaScript getMinutes() Method [![Image 9: Date Object Reference Manual](#) JavaScript Date Object](#) ## Example Returns the minutes of the time based on local time: var d = new Date(); var n = d.getMinutes(); _n_ Output: 12 [Try it Β»](#) * * * ## Definition and Usage The getMinutes() method returns the minutes of the time. * * * ## Browser Support ![Image 10: Internet Explorer](#)![Image 11: Firefox](#)![Image 12: Opera](#)![Image 13: Google Chrome](#)![Image 14: Safari](#) The getMinutes() method is supported by all major browsers. * * * ## Syntax _Date_.getMinutes() ## Return Value | Type | Description | | --- | --- | | Number | The minutes of the date object, displayed in local time. Returns an integer between 0 and 59. | ## Technical Details | JavaScript Version: | 1.0 | | --- | * * * ## More Examples ## Example Returns the minutes of a specified date and time: var d = new Date("July 21, 1983 01:15:00"); var n = d.getMinutes(); _n_ Output: 15 [Try it Β»](#) ![Image 15: Examples](#) (#) How to use getHours(), getMinutes(), and getSeconds() to display the current time. * * JavaScript Date Object](#)
← Jsref GetmonthJsref Getmilliseconds β†’