abstract time/date parsing into TimeUtils