I have a collection with dates in string type, sush as:
{
dateTime: "2015-25-15T10:10:10+02:00"
}
{
dateTime: "2015-25-15T20:11:11+01:00"
}
...
and I need to manth dateTime by UTC Date in aggregation. I did find any way to cast string to date in query.
new ISODate(...) works just with literals
$where - is not applicable in aggregation
Is it possbile?