You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at your docs and I can see the selected date as an object in my console, but whenever I try to read obj.year, obj.month or obj.date from my JS code, I get "undefined". I tried to call obj.getTime(), but it says getTime() is undefined, so this object is definitely not a JS Date object. If I try to dump the object members and methods, I get "too much recursion" error :(
amsul
changed the title
Get the Date object from picker
Update API documentation to show correct behavior of passing params to methods through the pickadate interface
Apr 2, 2014
I'm looking at your docs and I can see the selected date as an object in my console, but whenever I try to read obj.year, obj.month or obj.date from my JS code, I get "undefined". I tried to call obj.getTime(), but it says getTime() is undefined, so this object is definitely not a JS Date object. If I try to dump the object members and methods, I get "too much recursion" error :(
Here's the fiddle: http://jsfiddle.net/Avram/4Jv2y/
I can get selected date as text, but I really need JS Date object.
The text was updated successfully, but these errors were encountered: