Added date_to_string and timestamp_to_string convenience functions