String format date conversion to datetime format

Dear Experts,

Currently we are testing on datetime format structures. What we would like to do is we made an activity get text from PDF and convert to datetime format to fill up in the form.

Get Text value To Convert format
4-Feb-2020 dd.mm.yyyy

Let us know any suggestion or resolution from your end. Many thanks.

@Zaw_Win_Htun1

Welcome to forum

Check as below

Create a Variable which is string and assign the date value (Eg: workdayString)
Create another Variable which is DateTime (Eg: workday)and assign as below
convert.ToDateTime(workdayString)
Use the workdayString variable and assign like below
workday.ToString("dd.MM.yyyy")

Mark as solution if this helps

Thanks

It works. Thanks a lot.

1 Like

@Zaw_Win_Htun1

Happy Automation

Mark as solution if this helps

Thanks