View Single Post
Old 09-17-2023, 05:19 AM   #124
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: 11,761
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
17 Sep 2023 (in calibre 6.27)

New template function
  • format_date_field()
    Code:
    format_date_field(field_name, format_string)
    format the value in the field field_name, which must be the lookup name of date field, either standard or custom. See format_date() for the formatting codes. This function is much faster than format_date and should be used when you are formatting the value in a field (column). It can't be used for computed dates or dates in string variables. Examples::
    Code:
       format_date_field('pubdate', 'yyyy.MM.dd')
       format_date_field('#date_read', 'MMM dd, yyyy')

Last edited by chaley; 09-22-2023 at 05:31 AM.
chaley is offline   Reply With Quote