How to convert variable value into date

Hi all,

Variable contains data as “1 year or 2 years or 90 days or 210 days or 30 weeks” . How to convert this Variable data into Date(mm/dd/yyyy). Please help me.

Thankyou

Hi,

Can you share specific output which you expect? Do you want to convert it to days or timespan?

Regards,

Into date format mm/dd/yyyy

Hi,

Thank you for your reply.

If member submits “2years”, for example, what is result?

Regards,

@Reddy_1,

I’m attaching xaml file, please look into it.
You need to dynamically provide parameters to variable, i hardcoded for the demonstration.
in this xaml, you will get date of years, days, weeks, so you will have write three condition to fetch date based on input.

FindDate.xaml (9.9 KB)

Cheers,
Pankaj

Hi @Reddy_1,

Check this xaml, it may help you.
YearToDate.xaml (6.5 KB)

I will check and get back to you

I will check and get back to you soon

This is working fine for my scenario

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.