Jump to content

Recommended Posts

Posted
I am using date calendar usinghttps://spotfired.blogspot.com/2014/05/popup-calendar-webplayer-compatible.htmlbut when I select date in calendar, it is going in US format. Is there any way to force it to format the date in UK format ie. dd/mm/yyyy.
Posted

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

-------------------------------------------------

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...