Wrestling with datetime conversions.