Skip to content

Add a TO_DATE(str, format) SQL function #73

Description

@simoc

Add an SQL function to convert a string to a date/timestamp.

The java.time.format.DateTimeFormatter class will be used to convert the string 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 string, if set.

For reference, similar logic already exists in the CsvJdbc function StringConverter.createFormatter().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions