View Single Post
Old 11-23-2022, 02:28 PM   #426
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Code:
program: round(days_between($#filedate, $date))
Using this in template search with value '0' also picks up books with an undefined #filedate. How do I avoid this?
None is often equivalent to zero. Try raw_date('#filedate', -1000000).
Quote:
EDIT: Also, is there a better way to search that both columns have the same calendar date? MCS failed.
I would format both dates in the same way, for example yyyy-mm-dd (watch out for mm vs MM -- I never remember which is which), then compare the strings.
chaley is offline   Reply With Quote