Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-19-2023, 10:29 PM   #1
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,301
Karma: 1937893
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Question about importing dates

Library Thing has an export Excell sheet. I am trying to import it into Calibre to match books and dates,etc. The problem I am facing is that Library Thing formats their dates as yyyy-mm-dd even if I have it showing differently on the site. When I uploaded my Goodreads Library.csv they had their dates formatted as d/m/yyyy so a lot of my LT read dates are wrong.

Should I create a text column to hold the import date perfectly as it is, then create a date column with dd MMM yyyy and do some formatting of the date to copy it over? How will I retain wrong dates? LT has no problem showing dates that are wildly incorrect and impossible, so it won't be possible to copy those over, but being able to spot them will be difficult. I want to compare the column side by side with the correct dates in Calibre.


The goal is to import a date column formatted yyyy-mm-dd and is unable to be formatted differently in excel through their date format function(due to the impossible dates I think). I want to maintain dates if they are wrong or impossible so I can locate them and change them. However, I want to be able to read that column in the dd MMM yyyy format that Calibre uses so I can compare correct dates with imported dates. I don't want Calibre to misinterpret the dates being imported and change them to what they "should" be, or not import them at all because they might be impossible.

Suggestions?
Rellwood is offline   Reply With Quote
Old 09-19-2023, 11:31 PM   #2
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,365
Karma: 79528341
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Rellwood View Post
Should I create a text column to hold the import date perfectly as it is, then create a date column with dd MMM yyyy and do some formatting of the date to copy it over? How will I retain wrong dates? LT has no problem showing dates that are wildly incorrect and impossible, so it won't be possible to copy those over, but being able to spot them will be difficult. I want to compare the column side by side with the correct dates in Calibre.
If you import into a text column, you can then use a template to convert it to a a date that can be inserted into a date column using Action Chains' single-field edit or Search&Replace.

As a simple example:

Code:
program:

somedate = 'Sep 19 2023';
## somedate = '23/09/2023';

	format_date(somedate, 'yyyy-MM-dd')
If the date doesn't exist (e.g. September 32), the template returns BAD DATE.

Last edited by ownedbycats; 09-19-2023 at 11:46 PM.
ownedbycats is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Publication Dates kpjgpm Marvin 0 12-08-2017 11:01 AM
Saving to disk problems, and question about "Date field" after importing PO40600 Library Management 1 01-28-2013 11:42 PM
Importing question BookJunkieLI Calibre 1 06-18-2012 02:06 PM
question/suggestion: convert directly and make importing of sourcefile optional dura Calibre 0 09-09-2009 07:05 AM
Importing my Library Question river Calibre 6 06-22-2009 01:57 PM


All times are GMT -4. The time now is 02:42 PM.


MobileRead.com is a privately owned, operated and funded community.