Replies: 2 comments 5 replies
-
There isn't really a way to strip a year from a luxon DateTime (they are always defined by year-month-day), but there are a few somewhat clean options. If you just want month-day, you can do
And for just days you can just compare the |
Beta Was this translation helpful? Give feedback.
5 replies
-
In case anyone else is interested, this works perfectly now. The following is for anything due today, whether it is
Tip: to make it work for "Tomorrow", just replace all instances of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would love an option to ignore the year, a "stripyear" if you will, much like the existing "striptime".
It would make it so much simpler to write tables for things like due today, or upcoming.
We can include these things now with a bit of creativity and help from the lovely folks on Discord, but something like this:
where birthday.month = date(today).month and birthday.day = date(today).day
could turn into something like this:
where stripyear(birthday) = stripyear(date (today)).
Heck, while I'm at it, a combo stripyear-stripmonth would be good too!
Beta Was this translation helpful? Give feedback.
All reactions