support date-like objects (moment)