Time Support for to_date

added the ability to pass time to the to_date function