Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2015, 05:56 PM   #1
rayzor
Junior Member
rayzor began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2015
Device: ShuBook (ios)
Saving to Disk - Date Added to Library

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()

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
rayzor is offline   Reply With Quote
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,315
Karma: 7957679
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
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a little help with saving to disk svda Conversion 35 03-03-2014 03:08 PM
Saving to disk problems, and question about "Date field" after importing PO40600 Library Management 1 01-28-2013 10:42 PM
Date Added column? Can I set date when book added to library? fitzhugh Calibre 4 06-03-2012 05:42 PM
Losing files when saving saving to disk theaccountant Library Management 4 03-10-2011 02:38 PM
Date Added vs. Date Modified aglaia761 Calibre 5 11-28-2010 05:34 AM


All times are GMT -4. The time now is 01:04 PM.


MobileRead.com is a privately owned, operated and funded community.