engineer9090909090909090 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Unable to locate date formating variables #209

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I've just downloaded and placed the 3 necessary files (date.js,
datepicker.js, datepicker.css) on our web server and the plugin is working
fine.  But all dates are coming out in this format:

Thu May 20 2010 00:00:00 GMT-0500 (Central Daylight Time)

I'd like to change the format and can not locate where to do that. 
Date.format in date.js is set to dd/mm/yyyy (the default when I downloaded
it) and changing that doesn't do anything.  I experimented with changing
various parts of date.js to effect a change, even commented out some of the
arrays containing information I assume are used in the current format
(abbrDayNames for example) and don't even get an error message and no
change in format.

Please provide a URL to a page displaying the problem.

https://www4dev.uwm.edu/des/apps/eventreservation/index.cfm

What version of the datepicker are you using? On what operating system? And
Which Browser?

ver 2.1.2, Firefox 3.6.3

Please provide any additional information below.

Original issue reported on code.google.com by FancyPan...@gmail.com on 19 May 2010 at 2:45

GoogleCodeExporter commented 8 years ago
The dates that are returned to the dateSelected and dpClosed listeners are 
javascript
Date objects. They are getting converted into that string format when you 
output them
as the native toString method is automatically called.

In the dateSelected listener try: selectedDate.asString() instead.

In the other dpClosed you will need to loop through the array and call asString 
on
each individual member.

If you still have any questions please ask on http://www.stackoverflow.com/ and 
tag
your question with "jquery" and "datepicker". This forum is for bug reports and
feature requests rather than for support.

Thanks!

Original comment by kelvin.l...@gmail.com on 19 May 2010 at 2:57

GoogleCodeExporter commented 8 years ago
Thanks for the help!  Everything's working great!

Original comment by FancyPan...@gmail.com on 19 May 2010 at 5:17