Modify the conversion of integer date values to Date to handle the special start and end of time values