Forum Discussion
Derive 24 hour shift date. Overlapping calendar date
- 1 year ago
If you subtract from all the datetimes, the results will be the same, and the equation is simpler.
eg. 4/6/2025 6AM - 6hrs => 4/6/2025
5/6/2025 5:59AM - 6hr => 4/6/2025
No, i only need to subtract for the time between 12 mindnight to 6 am of next morning
If you subtract from all the datetimes, the results will be the same, and the equation is simpler.
eg. 4/6/2025 6AM - 6hrs => 4/6/2025
5/6/2025 5:59AM - 6hr => 4/6/2025
- Anonymous1 year agoNot applicable
This worked, thank you
- Anonymous1 year agoNot applicable
ronrsnfld , sorry i marked as solution but it did not work. i expect the yellow circled to be 04/06/2025
- ronrsnfld1 year ago
Super User
Your adaptation will not work.
You must use the formula I posted, with all the parentheses.
Since you removed the outer set of parentheses, you are subtracting 6 hours from just the date, and not from the datetime.
Correct formula: Date.From(([Date] & [Time])-#duration(0,6,0,0)) ^ ^ Your formula: Date.From([Date] & [Time])-#duration(0,6,0,0)