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
Whats the difference between culture and region


I am using the below piece of code to get the date format for my datepicker.


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.


Shwetha Onkarappa