Question

Date Control Insted of displaying "DD/MM/YYYY" it is displaying as "D/MM/YYYY"

We have a date control property in our application formatted as "DD/MM/YYYY" so when we are picking dates from 1-10 instead of displaying 01/10/2019 it is displaying as 1/10/2019.

Please help me with this requirement.

Thanks in advance.

Correct Answer
October 10, 2019 - 11:49pm

Hi @SrighakollapuS,

The available formats would be M/D/YY, M/D/YYYY, MM/DD/YY or MM/DD/YYYY and others as below

If you want to display the date in "DD/MM/YYYY" Format, you would have to choose custom date format and give DD/MM/YYYY. This format would be displayed if field is Read-only. If you want to see this format while the field is editable you have to enable " Display value using read-only formatting".

At run time , after the date is selected when you tab out that field it will display the date in the mentioned format.

Hope this helps in achieving your requirement.

Regards,

Priyabharathi 

Comments

Keep up to date on this post and subscribe to comments

Pega
October 10, 2019 - 1:09am

Hi,

Try setting the date format as custom and specify the desired format.

Where are you trying to show the date ?

Regards,

October 10, 2019 - 4:13am

Hi ,
Change the Date format in DateTime Control. It will affect in Read Only screen.

Please find attached screenshot.

Regards,
Bharathan.

Pega
October 10, 2019 - 7:01am

Hello,

Thank you for posting your query in Pega Support Community!

If you want to display the date in "DD/MM/YYYY" format you can perform the below local change in the section where the date property/control is being displayed in your application.

Navigate to the Presentation tab of the DateTime control in the section. Enable "Display value using read-only formatting" checkbox to display the date time value in the desired format.

Under "Read-Only Format" choose the desired date format to display the value as per your business requirement.

 

Hope this helps!

Thanks,

Geeda.

 

November 27, 2019 - 11:01pm
Response to GeedA

Thanks,

Above scenario has worked

October 10, 2019 - 11:49pm

Hi @SrighakollapuS,

The available formats would be M/D/YY, M/D/YYYY, MM/DD/YY or MM/DD/YYYY and others as below

If you want to display the date in "DD/MM/YYYY" Format, you would have to choose custom date format and give DD/MM/YYYY. This format would be displayed if field is Read-only. If you want to see this format while the field is editable you have to enable " Display value using read-only formatting".

At run time , after the date is selected when you tab out that field it will display the date in the mentioned format.

Hope this helps in achieving your requirement.

Regards,

Priyabharathi