View Single Post
Old 02-18-2018, 07:26 AM   #291
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by oren64 View Post
I'm trying to add the current month and year to the link, like:
program:list_item(today(),1 , '-') = 02
program:list_item(today(),0 , '-') = 2018

But it doesn't work, it only works with columns.
Is possible to add the date to the link?
"today()" returns a string, not a list. The following should do what you need:

Code:
program: format_date(today(), 'yyyy')
program: format_date(today(), 'MM')
davidfor is offline   Reply With Quote