# date_extract_mm(...)

### date_extract_mm(...)

Extracts the minute from the time as an integer.

Works with the following datatypes:

This function works with 2.1 endpoint(s). What does this mean? »

The date_extract_mm(...) function is used in the $select, $where, or $group parameters to extract Floating Timestamps the minute from the time as an integer. For example, date_extract_mm('2013-10-24T09:33:00.000') would result in 33. This is handy for aggregation & display usages. For example, to aggregate the Chicago Crimes dataset by minute: https://data.cityofchicago.org/resource/6zsd-86xi.json?$select=date_extract_mm(date) as minute, primary_type, count(*)&\$group=minute, primary_type