ENH: Some utility functions for working with dates

This may need to be unified a bit more at some point. Put them all in the same, sane place. Things are a bit scattered as it is.