I’m trying to make a calendar, but I can’t find a way to get what day starts a month, how would I do it?
looks like this. i opted for zellers congruence but there’s another method called doomsday BUT it seems far more convoluted IMO
you can check it out in a custom component
https://x.thunkable.com/component/659eca71a49469080acbcb97/
this algorithm is part of a calendar. first i find the day of the week for the first of the month. backfill the previous days, and generate the rest of the weeks for that month. then i return that array of arrays to the cloning section and generate the days/weeks in the visual UI
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.