today's date

89 views
Skip to first unread message

Erwin Buse

unread,
Apr 29, 2015, 11:51:12 PM4/29/15
to memento...@googlegroups.com
I want to use todays date to calculate years, months, days from a date of birth.

There is a standard in memento that is todays date but only from the moment of entry. Than it stay fixed. So actually it doesn't represent today's date. Its not dynamic.

How to fix this?

Dave Taylor

unread,
Apr 30, 2015, 7:24:04 AM4/30/15
to memento...@googlegroups.com
there is now a function called now() you can use it like this

 
if(#{birthday}!=0,datediff(#{birthday},now())/365.25,0)
 
Hope that helps

Erwin Buse

unread,
Apr 30, 2015, 11:25:56 AM4/30/15
to memento...@googlegroups.com
Great, already implemented. Works flawlessly. Thanks Dave
Reply all
Reply to author
Forward
0 new messages