views:

30

answers:

0

I need to grab a date in string format from jQuery UI datepicker.

At the moment the best I can come up with is:

$.datepicker.formatDate("yy/mm/dd", $("#fromDate").datepicker("getDate"))

Is there a cleaner way to do this?