The date returned by date picker is off by one day. Is it a problem in my code or is it a bug?
The date sent to date_picker is 2012-03-21. The date returned by dat
Seems to be a bug. If the string sent to Date() is formatted as 2012/03/21 instead of 2012-03-21. The date seems right.
You can add the difference to the date which will essentially ignore whatever the timezone is.
d.setTime( d.getTime() + d.getTimezoneOffset()*60*1000 );