On Mar 30, 11:49 am, MorningZ <[email protected]> wrote: > what happens when you say: > > $('#date_pick').datepicker( { > onClose: function(date) { > alert(date); > } > > }); > > maybe it's the Date, but it's a string value and needs to be converted > into an object of type date first (and i just tested this and it > works)
Ah, indeed. Thank you very much. I appreciate the fact that I'm a newbie, but it seems to me that the docs could be a bit clearer about this. Even something like "The function receives the selected date as a Date, as a string in the format mm-dd-yyyy, and..." would have been really helpful. Similarly, the docs for the parseDate function say "Extract a date from a string value with a specified format.", but it's not clear what that means; "Create a Date object from a string value..." would be clearer. What's the formal way of suggesting an update here? I'm sure other people would be helped by this as well. I'm happy to send a patch... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
