sqlitebiter icon indicating copy to clipboard operation
sqlitebiter copied to clipboard

Convert excel DATE to sqlite DATE

Open llf007 opened this issue 4 years ago • 1 comments

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

llf007 avatar Dec 26 '20 07:12 llf007

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.

cbertelli avatar Apr 16 '25 11:04 cbertelli