Convert an object representing a date to a string.
Convert an object representing a timestamp to a string.