Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
8 subscribers
Views
1355 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hello All, My objective is to convert input to datetime. I
tapans
over 8 years ago
Hello All,
My objective is to convert input to datetime.
Input can be like this :
1) 24 days
2) 7 days 4 hours 20 minutes
3) 5 days 20 hours
4) 10 hours
Output:
I want to convert above inputs to datetime().
Could some one please suggest me the simplest way?
Thanks!
OriginalPostID-208669
OriginalPostID-208669
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 8 years ago
I'm not sure the requirement makes much sense - are those quantities of time to be added to the current date, subtracted from a different date...?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 8 years ago
Assuming addition to current date - You can achieve this by writing custom rule to add days, hours and minutes. For e.g - 7 days 4 hours and 20 minutes - now()+7+intervalds(4,20,0). But this will not consider working calendar.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@tapans Hi, agree with @philb, as the input looks like duration(for instance, difference between two datetimes) more than a date time.
I am not sure if you can actually control the source of input as this makes things easier. Else we may need to write a custom expression rule that parses the input and convert it into a duration format and to the best of my knowledge, there isn't a way other than this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tapans
over 8 years ago
Hello All,
I am sorry for not specifying the requirement well. I have managed my purpose using caladddays() function to add days eliminating weekends.
Thanks for your input and sorry again for wasting your time.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel