Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Whats the difference between culture and region
posted

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

Parents
  • 1100
    Offline posted

    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

Reply Children