Moved general purpose methods to DateTimeUtils