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


#1

Hi,

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 ?

Regards,
Venkat


#2

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


#3

@venkat1 try below code it will be helpful

DateTime.xaml (7.6 KB)


#4

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 .


#5

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


#6

Hi,
please try with attached workflow.

datetime_conversion.xaml (6.0 KB)