Skip to content

Convert excel DATE to sqlite DATE #81

Description

@llf007

sqlitebiter is a very efficient xlsx conversion sqlite tool.
But Excel DATE type will be converted to INTEGER,
jt_2020-12-26_15-28-57
Before each conversion to SQLite, the Excel date should be converted into text first, and then converted with sqlitebiter.

Is there any option to automatically convert the DATE to a normal value?
For example: 1900/1/1 + 44191 day + 1 day = 2020/12/26

Activity

  1. cbertelli commented on Apr 16, 2025

    @cbertelli

    Using the suggestion by @Aman_Srivastava here: https://stackoverflow.com/questions/2770168/excel-sqlite-date-serial-numbers

    I converted the COLUMNWITHDATE into a date with:

    DATE(( COLUMNWITHDATE - 25569) * 86400 , 'unixepoch')
    

    would it be possible to apply a similar conversion? Obviously it could be used afterwards as well by other users.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions