A sanity-preserving wrapper around DateTime, taken from the Moonpig project