DateTime value to change desired format and store in the dateTime variable


I have dateTime in the DateTime variable like this “06/04/2018 13:56:33”, Now this format to change to the
“2016-06-04 13:56:33 yyyy-MM-dd HH:mm:ss” and store in the DATETIME variable.

I tried in the different ways but no luck, could someone please help on it ?


read the date fields using get date fields and then construct a variable with the fields how ever you want.

@venkat1 try below code it will be helpful

DateTime.xaml (7.6 KB)

Thanks for your Xaml, I tried it , but again i am getting the same date format… format is not changing. can you please try it .

1 Like

If you could share one example of using “get date fields” then it would be helpful. Thanks …

please try with attached workflow.

datetime_conversion.xaml (6.0 KB)