How do I get the week number of the first Sunday of the year?
As you can see, I've been trying a lot of different techniques (using the one Display Text as a scratch pad/tester). I can get week numbers for a date in the future (and adjust them for Epoch, if needed), and I can get the information of a future date from today's date, but I can't figure out how to combine them to get the week number of the first Sunday of the year regardless of what today's date is.
How do I get the week number of the first Sunday of the year?
Hi, @peternlewis . I know you're busy with the launch of 10, but could you please help me figure this out? I just need to a way to get KM to return the week number of the 1st Sunday of the year in my current locality.
Rule-of-the-thumb – never try to make a 1-liner (unless it makes really good sense to do so).
In general they are too difficult to compose, too difficult to read (one day, week, month, or year later), and too difficult to maintain.
Once you have something working you can think about making it more efficient. Sometimes that's highly desirable, because your first effort is clumsy and uneducated.
Sometimes better is the enemy of good enough.
I’m a perfectionist, so I frequently have to wrestle with my nature to avoid spending time unwisely.