How to change the date format from datepicker control

Hello,

I am using Datepicker control in my app to get Report Date and I am passing it to my RPA process, But whatever the date I select I am getting " Mon Jan 01 0001 00:53:28 GMT+0053" this. Can you guys help me to get it in the correct datetime format. Please help.

Thanks & Regards

Hello @anit.michael ,

You will be getting in UTC format from Apps. You have to change it to the format that you want in the process.

Thanks!
Athira

1 Like

I want it in dd.MM.yyyy format. without the time part.

Hello @anit.michael ,

You can’t apply date format into Apps right now as function is not available. But you can pass the selected app date as Input to Process and apply the format into Process as dd.MM.yyyy

Thanks,
AK

2 Likes

Are you using a datetime variable to get the data from app(While data binding) ?

Yes I am using a DateTime variable in app to get the date from datepicker

Can you try to convert it using DateVariable.ToString(“dd/MM/yyyy”) method ?

2 Likes

Thank you @athira.somasekharan.

1 Like

Glad it helped!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.