htmfilho / csvsource

Converts a CSV file to SQL Insert Statements.

Home Page:https://www.hildeberto.com/csvsource/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Format dates and times according to what is required by the target database

htmfilho opened this issue · comments

Is your feature request related to a problem? Please describe.

The feature is new and cover cases where the date/time format in the CSV file is not compatible with the database date/time format.

Describe the solution you'd like

  • Using column arguments, inform the date/time format present in the column
  • Using another argument, inform the date/time format supported by the database.
  • Convert the format in the column to the format supported by the database.

Describe alternatives you've considered

There is no alternative to solve this problem in the current version.

Additional context

The date/time format syntax will be inherited from the time library in use.