Hi,
I need to find the days difference between current date and given date, I have implemented the conversion logic (Duration to String) in the bot flow, but it's not working as I expected. The value has changed automatically when I converted to string from duration. I have attached the screenshot.
Actual date difference in duration - "-P73DT5H40M9.009S"
After converted to string the value is - "PT-1757H-40M-9.009735S"
Note: It is working properly when I implemented the same logic in inbound call flow. This issue happens only in bot flow.
I want to extract the "73" from "-P73DT5H40M9.009S". That's why I converted to string in bot flow. Please suggest how do I extract the value from the duration in bot flow. Thanks in advance.