Skip to content

$minute

Returns the minute from the input date.

Options

  • date (optional) Input date. Default random (0-59).

Example

{
    "someDate": "$dt",
    "minute": { "$minute": "${someDate}" }
}
{
    "someDate": ISODate("2016-06-03T15:28:54.721Z"),
    "minute": 28
}