better and more efficient date/time handling