map date to Date