Forum Discussion
sconway1985
Mar 17, 2023Brass Contributor
Formula for Dynamic DST Time field
I am trying to write a formula that allows me to reference a time field which is in UCT, to translate it to local time, but also work dynamically with DST. The formula below is what I have been using...
- Mar 23, 2023=IF(AND([@[Shift Start]]>=DATE(YEAR(NOW()), 3, 1) + (14 - WEEKDAY(DATE(YEAR(NOW()), 3, 1), 1))+TIME(2, 0, 0), [@[Shift End]]<DATE(YEAR(NOW()), 11, 1) + (8 - WEEKDAY(DATE(YEAR(NOW()), 11, 1), 1))+TIME(2, 0, 0)), [@[Shift Start]]-(5/24), [@[Shift Start]]-(6/24))
This is the fix
HansVogelaar
Mar 18, 2023MVP
If NOW() is the 5th of November, 2:30 AM, how do you know if it is before or after the clock has been turned back?