Below I finally managed to finish a Birthday query. Maybe someone will find it useful. I have it in my default-queries and it shows a birthday if the property “birthday:: [[2000/01/31]]” is filled with today’s day.
If someone can make it easier, shorter, more readable please let me know
Thanks. I did like this but it is not working for me. I don’t understand why for the today the string subs operation uses different number compared with the burthday string. Is it normal?
The :today input is always as yyyymmdd regardless of your date format setting for the journal.
So to break it apart we need specific subs.
The original user posted they used a link to their journal as the property which has a format of yyyy/mm/dd thus would need different subs to extract.
If your journal refs are as previously stated, then the query from the original post will not work for you.
The query that Darwis linked to, would work regardless of your journal date format settings.
If I need the birthday date to be within three days or less from today, what should I do? I have tried several methods, but none of them have been successful.
such as [(<= (- ?todaymd ?birthmd) 4)]