Moved datetime functions to DateTimeUtils