simplify date/time converting  (thanks Zane!)