Commonly used date and time related utility functions.