Utilities to facilitate date and time handling