Does the Date.format field get reference within the datepicker function or does 
it get copied when the function is run initially.

So...

Date.format = FORMAT_1

jQuery('#1').datepicker();

Date.format = FORMAT_2

jQuery("#2").datepicker();


What will a date from #1 look like when it is opened and used down the 
road...FORMAT_1 or FORMAT_2?

----- Original Message ----
From: Kelvin Luck <[EMAIL PROTECTED]>
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 6:35:45 AM
Subject: [jQuery] Re: datePicker v2 beta


> you are right. I just like to have customizations like that written right 
> there in the code where I apply the calendar plugin so future developers will 
> see it rather than have to hunt for the source of the date format. doesn't 
> really matter, its up to you.
>

It won't hurt to reset the date format in your page if you like. Just do 
something like:

Date.format = 'dd mmm yyyy';

Obviously whatever you set in your page will override what is set in the 
date.js file.



Reply via email to