Created to_date function

to_date is a useful function that allows any date to be converted to the
appropriate string specification.