Question
CPF
SG
Last activity: 18 Sep 2017 1:34 EDT
How to get dd-MM-yyyy editable format for datetime control?
How to get dd-MM-yyyy editable format for datetime control?
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hello,
Can you please elaborate your requirement as it's not clear with some screenshots.
Regards
Mahesh
Pegasystems Inc.
US
Because if you choose the Datetime property to Editable in Presentation tab, then you wont get the Read Only Format options where you can specify the datetime control format as explained over here. I dont see any option to change the date format that is being displayed in datetime control for the Editable type as per OOTB options.
CPF
SG
Hi Mahesh,
Here I choose the Edit Options as Auto in presentation tab of the control.
Thanks,
Renuka
CPF
SG
Hi Mahesh,
Looked in to the article. That date format is only for Read-Only. But I want it for Edit type.
Thanks,
Renuka
Pegasystems Inc.
US
@Renuka, as explained above the formatting can be applied to read only properties through OOTB feature and i dont see any option to format the datetime control for edit option.
Pegasystems Inc.
US
If you choose the Auto option then you can find the "Display value using read-only formatting" checkbox through which you can enable the formatting to the Auto mode datetime control as explained in the attachment. Hope this will help in achieving your requirement, the focus needs to be away from the property to reflect the formatting on it which is expected behaviour.
CPF
SG
Hi Mahesh,
But don't want that format in read-only format. I want it in editable mode only. Is there any other solution.
Thanks,
Renuka
Pegasystems Inc.
US
Through Auto mode you can also edit the property value Renuka, but you need to enter the date format in dd/MM/yyyy then the date will be formatted to dd-MM-yyyy after focus moves out of field. Apart from this i dont see any option to perform your desired task on datetime control.
You can use text control and write your own validation to accept only dd-MM-yyyy format into the field and apply the validate rule in your property "Use Validate".
-
Renuka Boddu