handle empty date