CRM-15027- fix copy function for date fields

CRM-15027- fix copy function for date fields