My Calendar Base has a view for each month. When I go to October, for example, I want all my calendar dates to display as ddd MMM DD, so âWed Oct 14â via a formula.
The problem is that the weekday is assigned by the calendar.year, so Oct 14 displays as âSat Oct 14â rather than âWed Oct 14â (in 1939 Oct 14 was on a Sat).
I need to somehow use todayâs year and todayâs days of the week, with the calendarâs month and date. But, as I found out, you canât just connect the two.
Things I have tried
Iâve tried a bunch of combinations using today().year with calendar months and days, but the combo always seems to require turning today().year into a string, to the use the "+ " to build up the new âfakeâ date. Problem is I still canât get the days of the week out of that, or at least I donât know how.
I even tried wrapping this up with another date( ).format("ddd MMM DD"), you know, to create a date out of all the strings, but that didnât work either.
Iâm wondering if I could just use some form of âconvert date to this yearâ.
Each of those returns the anniversary this year, which isnât necessarily the upcoming anniversary. Could create confusion on, for example, Thu Dec 31st when the base shows your friendâs Thu Jan 1st birthday.
And in non-leap years, leap days will turn into Mar 1st.
Iâm learning now that it is better to treat the base formulas like real programming, where every function is small, singular, and separate, and then we can bring them together if need be. I tend to try to put everything in one large formula and of course I get lost half the time.
Iâm assuming that more but smaller formulas like this are easier on bases (re compiling, and speed).
Iâve copied your method into my âbases - how toâ file, but I think Iâm going to go with dawniâs simpler method below. Having said that, Iâm this close to complicating everything by including monthly items and todo stuff with due dates into the same views, so yeah, multiple smaller functions are definitely going to come in handy for that project!