We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Set seconds in DateTimePicker

Hello,

I was wondering how to always allow the user to set the seconds.

I found the workaround of setting the format and timeFormat to

```

{
// .....
format: 'dd/MM/yy hh:mm:ss',
timeFormat: 'HH:mm',
// .....
}

```

But that is just a workaround for the time in Spanish, I would like to know how to set it in every locale, because obviously each locale changes the format.


1 Reply

SP Sureshkumar P Syncfusion Team October 27, 2022 11:05 AM UTC

Hi Sergi,

We have confirmed the format property is not a workaround solution this is the solution for your requirement. So, we suggest you change the component format property when you change the locale to the component to achieve your requirement.

Regards,

Sureshkumar P


Loader.
Live Chat Icon For mobile
Up arrow icon