These are useful DateTime extension functions.