Jump to content
We've recently updated our Privacy Statement, available here. ×

Date Calendar in UK format

Aditya Singh 3

Recommended Posts

Answer is there in same blog in comments section:


Anonymous said...

Hey nice blog but how can I change the format for the date time picker as when I am opening the report from UK as the system date setting are in dd-mm-yy format

its taking wrong date but on opening it from US is working fine

what I understood that we need to add regional setting.

How can we add it

$.datepicker.setDefaults( $.datepicker.regional[ "" ] );



As if I select 10- Nov -2014 from london its changing it to 11-Oct -2014 but from US systems its working fine

February 17, 2015 at 12:35 AM



Jose Leviaguirresaid...

Add "altFormat" to your "pickerOptions" object:


$( ".selector" ).datepicker({

altFormat: "dd-mm-yy"



Here is the documentation for all available options: http://api.jqueryui.com/datepicker/

February 17, 2015 at 5:43 PM


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...