Stop datetimes from being displayed as invalid