Added regex expression to handle date conversion.