Thread: date field
View Single Post
Old 10-06-2011, 11:09 AM   #6
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,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by iomari View Post
Can someone give me a hint how to add the timestamp field as a custom column?
I can't seem to find the right function to use for the template.
Use {timestamp}. No function is necessary.

If you want to format it, then use {timestamp:'format_date($, 'yyyy')'} where 'yyyy' is replaced with the format you wish. If you want the full ISO timestamp including the time, use {:'raw_field('timestamp')'}

Last edited by chaley; 10-06-2011 at 11:27 AM. Reason: corrected the raw_field template
chaley is offline   Reply With Quote