jQuery UI Widgets › Forums › Editors › Calendar › Calendar Format
Tagged: calendar, culture, datetimeinput, jqxCalendar, jqxdatetimeinput, titleFormat
This topic contains 5 replies, has 2 voices, and was last updated by Nadezhda 9 years, 11 months ago.
-
AuthorCalendar Format Posts
-
Hi,
Good Day!
Is it possible to change the format of the JP calendar?
The current format is 2月 2015 (mm/yyyy), can i change it to 2015 2月 (yyyy/mm)And also the days are displayed in 月曜 instead of 月
Thanks.
Hello wayne,
Here is an example which shows how to change calendar format to JP calendar using ‘culture’ property. You can set the current format with ‘titleFormat’ property.
<!DOCTYPE html> <html lang="en"> <head> <title ></title> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../scripts/demos.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script> <script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script> <script type="text/javascript" src="../../jqwidgets/globalization/globalize.culture.ja-JP.js"></script> <script type="text/javascript"> $(document).ready(function () { // create a calendar. $("#jqxCalendar").jqxCalendar({ culture: 'ja-JP', width: '220px', height: '220px', enableTooltips: false, titleFormat: "MM yyyy" }); }); </script> </head> <body> <div style='float: left; margin-right: 20px;' id='jqxCalendar'></div> </body> </html>
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Hi Nadezhda,
Thanks for the example.
Is this also applicable to the jqxDateTimeInput?
Hi wayne,
You can set ‘culture’ property in jqxDateTimeInput, too. For more information, please, take a look at the following demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdatetimeinput/localization.htm?arctic.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Hi Nadezhda,
What I meant is that I wanted to have my calendar in this format.
Would this be possible?
Thanks.
Hi wayne,
Unfortunately, it is not possible for this culture.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.