Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-10-2026, 07:16 PM   #1
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,690
Karma: 81419259
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Dates in a taglike column

I have a column that stores dates.

Is any possible way to have it display as "January 1 2000, December 31 2010" but still sort in order of date?
ownedbycats is offline   Reply With Quote
Old 04-10-2026, 08:14 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,674
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ownedbycats View Post
I have a column that stores dates.

Is any possible way to have it display as "January 1 2000, December 31 2010" but still sort in order of date?
There is a tweak for real date types (not a text that looks like a date)
Code:
ID: gui_pubdate_display_format
theducks is offline   Reply With Quote
Old 04-10-2026, 09:15 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,578
Karma: 32600660
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ownedbycats View Post
I have a column that stores dates.

Is any possible way to have it display as "January 1 2000, December 31 2010" but still sort in order of date?
The Format of a Date column does not determine how it is sorted - to get what you want enter "MMMM d yyyy" into the Format field:

Click image for larger version

Name:	Screenshot 2026-04-11 111146.jpg
Views:	17
Size:	237.0 KB
ID:	222440

But that wont put the column into the Tag browser.

BR

Last edited by BetterRed; 04-10-2026 at 09:18 PM.
BetterRed is offline   Reply With Quote
Old Yesterday, 01:25 PM   #4
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,690
Karma: 81419259
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'm putting the dates into a custom taglike column, so those won't help.
ownedbycats is offline   Reply With Quote
Old Yesterday, 03:28 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,674
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ownedbycats View Post
I'm putting the dates into a custom taglike column, so those won't help.
This is why we used ISO date format for early DB text fields:
20011204 (YYYYMMDD) They ASCII sort
Why not use a saved search? Or is your desire down to a day?
eg (mine is a date column, But any search should work AND the search name IS sorted in the list
Code:
#finished:2026
And the saved searches are included at the bottom of the Tag Browser
theducks is offline   Reply With Quote
Old Yesterday, 05:00 PM   #6
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,690
Karma: 81419259
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by theducks View Post
Why not use a saved search? Or is your desire down to a day?
I'm storing multiple dates.

Click image for larger version

Name:	2026-04-11 17_59_43-Watership Down (the current book).png
Views:	3
Size:	5.1 KB
ID:	222462

The text-dates are nicer to read, but don't sort right
ownedbycats is offline   Reply With Quote
Old Yesterday, 06:16 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,578
Karma: 32600660
Join Date: Mar 2012
Location: Sydney Australia
Device: none
What happens of you store the data as a Date, and cloak it with a tag-like composite column viz:

Click image for larger version

Name:	Screenshot 2026-04-12 081351.jpg
Views:	8
Size:	56.7 KB
ID:	222463

BR
BetterRed is offline   Reply With Quote
Old Today, 12:08 AM   #8
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,690
Karma: 81419259
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
using

Code:
program:

	new_dates = '';

	for dates in '#datesread':
		converted = format_date(dates, 'MMMM d yyyy');
		new_dates = list_union(new_dates, converted, ',')
	rof

seems to work, though the dates are backwards for some reason

EDIT: I fixed it by swapping the order of the list_union. I'm not sure i understand what happened but it works!
Attached Thumbnails
Click image for larger version

Name:	2026-04-12 01_05_12-Watership Down (the current book).png
Views:	10
Size:	4.9 KB
ID:	222469  

Last edited by ownedbycats; Today at 12:10 AM.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Template: Show only first value in a taglike ownedbycats Library Management 6 01-17-2021 06:51 AM
Result of difference between two dates populated in a column China Diapers Calibre 8 07-07-2019 04:53 AM
Move selected data from series column to a new custom column fvdham Library Management 3 06-02-2017 03:49 PM
Using "Build column from other column" custom-column type HFC3 Library Management 3 07-07-2013 03:11 AM
Q: multi-column PDF to single column mobi format converstion auburn1975 Calibre 7 01-28-2012 06:11 PM


All times are GMT -4. The time now is 08:23 AM.


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