I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:
And the
I use this:
var strDate = $("#dateTo").datepicker('getDate').format('yyyyMMdd');
Which returns a date of format like "20120118" for Jan 18, 2012.
20120118
Jan 18, 2012