Date operations using Evan Balster's formula macro
51 views
Skip to first unread message
Hubert
unread,
Jun 22, 2018, 11:51:48 AM6/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWiki
I'm having problems getting this right. Evan's <<formula>> documentation shows the following syntax to add days to a date:
add_days(d1,n)
But when I attempt this...
<<formula"add_days('20180622', 5)">>
...I get the following error:
ComputeError: Cannot auto-convert "20180622" to a date!
What exactly am I doing wrong?
Thank you for your help!
Regards,
Hubert
Mark S.
unread,
Jun 22, 2018, 12:08:01 PM6/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWiki
This seems to sort of work:
<<formula "add_days(tw_date('20180622'), 5)">>
This converts your almost-TW date into an addable date before the addition.
In my timezone, the result if off by one day (06-26). I think it's because you're not specifying the hour, minutes, seconds. So, your results may vary.
-- Mark
Hubert
unread,
Jun 22, 2018, 12:22:51 PM6/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message