View Single Post
Old 07-06-2019, 08:54 AM   #4
China Diapers
Member
China Diapers began at the beginning.
 
Posts: 21
Karma: 10
Join Date: May 2011
Device: PRS-600
Quote:
Originally Posted by DaltonST View Post
Yes, if you create a template function to do so.

See: https://manual.calibre-ebook.com/template_lang.html

Create a custom composite column to test templates. Once you have the column, you can change its template simply by double-clicking on the column.
I have been experimenting with this and something strange is happening. I have created a column with type 'Column built from other columns' and tried entering the below in the template field:

days_between({#start_date},{#end_date}) returns "days_between(,)"
days_between(#start_date,#end_date) returns "days_between(#start_date,#end_date)"

What am I doing wrong?

Last edited by China Diapers; 07-06-2019 at 01:21 PM.
China Diapers is offline   Reply With Quote