Get the minutes of the given date.
Get the minutes of the given date.
// CommonJS
var getMinutes = require('date-fns/getMinutes')
// ES 2015 import getMinutes from 'date-fns/getMinutes'
// ESM
import { getMinutes } from 'date-fns'
getMinutes(date)
| Name | Description |
|---|---|
date |
the given date |
| Description |
|---|
|
the minutes |
| Type | Description |
|---|---|
TypeError |
1 argument required |
// Get the minutes of 29 February 2012 11:45:05: const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) //=> 45
© 2021 Sasha Koss and Lesha Koss
Licensed under the MIT License.
https://date-fns.org/v2.29.2/docs/getMinutes