date-agnostic time parsing for node and the browser