String variable to date

Hi @mskym111

Check the below workflow:

Input = "2022.03.17"
Output= DateTime.ParseExact(Input.ToString,"yyyy.MM.dd",System.Globalization.CultureInfo.InvariantCulture).AddDays(14)

Here Input variable refers to output of GetText Variable. And Output is of DataType System.DateTime.

Another case:

Input = "2022.03.17"
Output= DateTime.ParseExact(Input.ToString,"yyyy.MM.dd",System.Globalization.CultureInfo.InvariantCulture).AddDays(14).ToString("yyyy.MM.dd")

Here Input variable refers to output of GetText Variable. And Output is of DataType System.String.

Regards