Hi,
I am looking to subtract Time from a DateTime Variable.
For Eg: If I -6 hrs from the DateTime Variable = 21-03-23 03:00:00 AM, it should return me 20-03-23 09:00:00 PM.
Let me know if you can help.
Thanks
Johnson Patrick
Hi,
I am looking to subtract Time from a DateTime Variable.
For Eg: If I -6 hrs from the DateTime Variable = 21-03-23 03:00:00 AM, it should return me 20-03-23 09:00:00 PM.
Let me know if you can help.
Thanks
Johnson Patrick
Hi,
Thanks for your reply. My offset time is stored as a Integer, so how do i use integer variable to subtract from the DateTime variable?
Use the duration datatype and say
TimeDate + Duration := NewDateTime as documented here:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156