UIPATH : Change Datetime Variable Format

Hello guys ! :slight_smile:

I need your help for one sequence of my project.
My process is about to retrieve many Datetimes from websites and to change the format in order to use it in an other application.
To extract datetimes I use 2 variables : one for the date and the second for the time, then i use an assign to put it on the same variable.
I want to change the format of these datetime but it doesn’t work.
I join you my sequence if you want to have a look :slight_smile:
Extract Data 2.0.xaml (14.8 KB)

Thanks for your help !

I got this message : Error

@AmauryCarlier

Could you please show me the expression you tried to convert this. Will check and update you.

Thanks @lakshman for your help ! :slight_smile:

I’m trying with this assign to change the format :
INFO = Date + Time
sINFO = DateTime.ParseExact(INFO.ToString, “dd/MM/yyyy h:mm AM/PM”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd MMM yy h:mm AM/PM”)
I join one screen where you you can have a look about the format that I need.

Many Thanks !Screen%20Format%20DateTime

1 Like

Hi @AmauryCarlier,

Can you share the example of input values(Date,TIme) so that i can check it.