Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Looking to display $DueDate (Read 866 times)
Steve Zeoli
Full Member
*
Offline



Posts: 72

Looking to display $DueDate
Dec 29th, 2016, 2:00pm
 
I would like to show the note name and its due date in short form. As best I can tell, this display expression should do that:

$Name+" - " +$DueDate.format("1")

But the result I get is this:

Event + 1

Clearly I am doing something wrong, but can't figure out just what. Any help will be appreciated. Thanks.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Looking to display $DueDate
Reply #1 - Dec 29th, 2016, 6:36pm
 
I suspect you mean 'l', i.e. lowercase 'L' for the format string rather than '1' the numeral one - the difference is easy to miss in many fonts.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Steve Zeoli
Full Member
*
Offline



Posts: 72

Re: Looking to display $DueDate
Reply #2 - Jan 4th, 2017, 9:39am
 
Thanks, Mark. I tried that and it didn't seem to work, but now it is, so I was probably doing something else wrong in addition.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Looking to display $DueDate
Reply #3 - Jan 4th, 2017, 10:21am
 
Good.  For later readers, this article on date format strings may be useful.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print