Unable to use "dd/MM/yyyy hh:mm tt" format in format property of DateTimePicker control

Hi Team,

I have a scenario where an API gives date-time formats based on culture.
One of the standard formats is "dd/MM/yyyy hh:mm tt" which is not working in the control. It should show AM/PM format but shows tt instead.

Could you please provide some solution?
I have also attached a demo project with this hard coded format.

Thanks
Tuariq

Attachment: DateTimeFormat_Zip_24a71705.zip

1 Reply

SN Sevvandhi Nagulan Syncfusion Team May 13, 2020 05:42 AM UTC

Hi Tuariq, 

Greetings from Syncfusion support. 

We checked the reported requirement. You incorrectly entered the Format property in the sample. Kindly refer the below code, 

 
<ejs-datetimepicker format="dd/MM/yyyy hh:mm a"></ejs-datetimepicker> 
 
 




Regards, 

Sevvandhi N 


Loader.
Up arrow icon