Better date parsing and formatting including 32 bit support (Fix dateThen)