Fix empty date value