Hi,
I am using the below piece of code to get the date format for my datepicker.
$.ig.regional[_webUi.getUserRegionalSetting()].dateTimePattern
getUserRegionalSetting() method returns 'en-US'. when code gets executed I get date pattern as follows "M/d/yyyy h:mm tt". may I know why i am not able to get the seconds here. and what code changes should i make to get "M/d/yyyy h:mm:ss tt" format.
I can set the dateformat for the datepicker which we create using MVC by using ThreadManager.CurrentSession.Culture.DateTimeFormat.LongTimePattern. not able to achieve same using js.
Thanks,
Shwetha Onkarappa
Hello Shwetha,
Thank you for using Ignite UI!
In order to best understand your scenario and to investigate the issue that you describe, can you please provide an isolated sample that reproduces this case?
Thank you in advance,Alexander
Hi Alex,
my question is simple and nothing to do with sample.
$.ig.regional['en-US].dateTimePattern
the above piece of code returns me "M/d/yyyy h:mm tt" which does not have "seconds" in time component. how do i modify this to get date time pattern "M/d/yyyy h:mm:ss tt" (this has "seconds" component)
You can find the "en" regional file her: https://github.com/IgniteUI/ignite-ui/blob/master/src/js/modules/i18n/regional/infragistics.ui.regional-en.js
Respectively, you can find it in your install folder under the same path.
You can modify the property there
If you need any further help, do not hesitate to contact us again.