AustinK
6 years agoQrew Commander
Re: Calculate Daylight Savings time
var date secondsunday = LastDayOfWeek($firstdayofmarch)+Days(1);
That made it calculate that date correctly for me in 2020 but it will no longer calculate correctly for 2019 or probably other years either. So if the record was created after 3/8/2020 it will state it is daylight savings time. If not, it says no. Again just to be sure you saw, your November Sunday is also calculating wrong for 2020.
There may be another solution that will actually calculate for all/most years correctly. I think it is going to be tough to do though.
That made it calculate that date correctly for me in 2020 but it will no longer calculate correctly for 2019 or probably other years either. So if the record was created after 3/8/2020 it will state it is daylight savings time. If not, it says no. Again just to be sure you saw, your November Sunday is also calculating wrong for 2020.
There may be another solution that will actually calculate for all/most years correctly. I think it is going to be tough to do though.