Hello All, My objective is to convert input to datetime. I

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

Parents
  • @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.
Reply
  • @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.
Children
No Data