Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-09-21 01:20 PM
I have a date time field . I need to add x hour to that , say 2 hours . How can I achieve the same ?
------------------------------
Seetu Gupta
------------------------------
------------------------------
Seetu Gupta
------------------------------
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-09-21 01:39 PM
[DateTime Data Item] + MakeTimeSpan(0,x,0,0).
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification Developer
Amazon
------------------------------
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-09-21 01:39 PM
[DateTime Data Item] + MakeTimeSpan(0,x,0,0).
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification Developer
Amazon
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-02-22 01:43 PM
To follow up on Vipul solution, in newer version of Blue Prism it would be
Another approach can be, if you need to add hours based on localtime is doing:
------------------------------
Johan Sörman
RPA Developer
Telia Company
Sweden
------------------------------
[DateTime Data Item] + MakeTimeSpan(0;x;0;0)
Another approach can be, if you need to add hours based on localtime is doing:
Localtime() - UTCTime()
and use the MakeTimeSpan that would generate as your second input.------------------------------
Johan Sörman
RPA Developer
Telia Company
Sweden
------------------------------
