[WiP] a few date helper functions (need to re-write with tests)