Dates - richardschneider/yappy GitHub Wiki
A Date or DateTime always gives problem. All dates and/or date-times will be stored as an ISO 8061 formatted string zero relative to UTC, e.g. '2015-10-26T05:06:38.260Z'
. This format allows a string compare to determine the ordering of dates no matter what time zone the client (server or database) is running in.
var now = new Date().toISOString();
Note: there is an equality issue mixing 3-digit and 6-digit partial seconds.