Use ns instead of ms and accept Date objects in time formatting functions
Fix dateformat version