"next event" may be coming way far in the future. I'd like to limit events to those of the next 2 weeks (I don't need to know about things that are months away), how can I do that?Thank you
I'm rather new to Zooper Widget myself, but I would think that you could make a conditional statement that takes the difference of the date of the event and the current date and if that is < 14, then do the following. Note that I have not tested any of the following, so you would probably have to debug and troubleshoot any issues if some arise.
$#C0SMMdd#-#DMMdd#<=14? #C0TITLE#$
To my understanding, this would say
If (First Calendar event month and Day) - (Current Month and Day) <= 14, then display the name of the first event.
However, there is one flaw with this formula, since it the values would be incorrect the following month (For example the 29th of April would yield the value "0429" and the first of May would be "0501", but the difference is well over 14, but they are within 2 weeks of one another).
Since the difference in months should be the 100s place, you might be able to just do another if statement that says
$[#C0SMMdd#-#DMMdd#>=73] && [#C0SMMdd#-#DMMdd#<=86] [&& #C0SMMdd#-#DMMdd#<-1000]? #C0TITLE#$
I didn't spend a whole lot of time on these numbers, so there may be a few errors. I thought of the worse scenario (Being the last day of February and an event on the next day (0301-0228=73)) and the other scenario being a cap so that you don't get events in the long distant future. The last is for the change of December to January.
As a said, I am rather new to using zooper, so there may be an easier way to do this. If not I hope this helped get you started.