You can use !!
to insert dates. It accepts some date formats and some natural language as argument.
I found the following:
-
!!YYYY-MM-DD
like!!2021-01-10
for 10th january 2021 -
!!yesterday
,!!today
,!!tomorrow
-
!!XInterval[ago]
whereX
is an integer (1,2,…),Interval
isday
,week
,month
,year
andago
is optional to go into the past instead of the future- instead of
ago
you can also prefix withlast
- instead of
-
!!Weekday
whereweekday
ismon
ormonday
-
!!lastWeekday
gets the weekday of last week, e.g.lastmonday
is the monday of last week which could be 2 mondays ago
-
Is this documented anywhere? Is there more? What is the underlying library used to parse this? https://github.com/wanasit/chrono?