Quote:
Originally Posted by rayzor
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.