View Single Post
Old 01-30-2015, 06:18 PM   #2
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,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by rayzor View Post
I am trying to save to disk with a folder structure that contains the Month/Year added. {date} doesn't work at all so I can't even progress into format_date()
What doesn't "work at all"?
Quote:
Any idea how I would accomplish this? I am trying
{date}/{authors} - {title}

What I ideally want is
{date:'format_date(raw_field('date', 'yyyy-mm'))'}

Thanks
There is a bug here. The 'real' name of the date field is 'timestamp'. It seems that the raw_field function does not do the translation from 'date' to 'timestamp'. I will look at that.

The template you 'ideally want' is
Code:
{:'format_date(raw_field('timestamp'), 'yyyy-MM')'}
Pay particular attention to how it is parenthesized and the the usage of M instead of m for the month.
chaley is offline   Reply With Quote