PDA

View Full Version : How to Change time format in Calendar Panel to 24h ?



viettotal
Sep 13, 2014, 8:36 AM
Hi all !

I'm using CalendarPanel control , current this control show time formate is 12h AM/PM.
But I want to change format to 24h and remove AM/PM on control.

Can you help me ? Thanks.

15071

Daniil
Sep 14, 2014, 8:35 AM
Hi @viettotal,

As far as I can remember there is no setting to customize it.

It needs to override something in the Calendar's JavaScript sources. So, the first thing to do is to find where the current date format comes from.

viettotal
Sep 15, 2014, 1:59 AM
Hi Daniil !

Thanks for your reply.
I have some question for this subject, you can support me?
1. I need override js file. You can specify it?
2. After, when I'd overrided js file, How to I can attach it into my website (I'm using UserControl in Webform) ?

You can help me ?

Daniil
Sep 15, 2014, 6:04 AM
1. I need override js file. You can specify it?

You mean specify a file that you should override? Well, I would not say you should override a JavaScript file. You should override a JavaScript class. But you need to find what exactly. Please investigate the Calendar's JavaScript sources. This thread might be helpful to understand what needs to do.
http://forums.ext.net/showthread.php?25603


2. After, when I'd overrided js file, How to I can attach it into my website (I'm using UserControl in Webform) ?

I would try to add it as a regular JavaScript file.