Add an SQL function to convert a date or timestamp to a string.
The java.time.format.DateTimeFormatter class will be used to do the conversion and format will be a pattern used by java.time.format.DateTimeFormatter.
Also use the CsvJdbc "timeZone" and "locale" database connection properties when converting the date or timestamp, if set.