handling of null values in date conversion