do we have locale_us available?

Hi,

For different locale we have different date format files like locale_cn/de/es js etc.

But do we make a difference between en-US and en-GB?

It seems like we have en-GB as the default_date date format. Is it possible to add en-US date format and how?

Thanks,

anybody?

Hello,
there is no built in format settings for en-US,
you can either change needed format from your code:

scheduler.config.hour_date = "%g:%i %a";

Or you can create custom locale file based on locale.js, that can be found in /sources/locale/locale.js
If you modify needed formats and load locale file after dhtmlxscheduler.js, the formats will be applied

Thanks for the reply.

%g stands for 12-hour clock as oppose to 24-hour clock?

if I want to take the code change approach hour_date is the only difference between en-US and en-GB date time format?

should the default_date be changed as well like from default “%j %M %Y” to “%M %j %Y”?

Is there any other differences?

Thanks,

Hi,
yes, changing hour and date formats should be enough.
You may also change first day of the week(by default it’s Monday), following config will set it to Sunday: scheduler.config.start_on_monday = false;

The date format mask is explained here
docs.dhtmlx.com/scheduler/settings_format.html

docs.dhtmlx.com/scheduler/api__s … onfig.html
docs.dhtmlx.com/scheduler/api__s … onfig.html
docs.dhtmlx.com/scheduler/api__s … onfig.html

Thanks, your reply is very helpful!