datepicker

datepicker

im using the datepicker function which is great but i need to format the date like : 2010/05/14...i have read on how to do this but it doesnt seem to change the date format when a date has been selected and returned to the input field
 
i hope somene can help please...thank you
  1. $.datepicker.formatDate(

    'yy-mm-dd');

    $(

    function() {

    $(

    '#datepicker').datepicker({

    changeMonth:

    true,

    changeYear:

    true

    });

    });

    $(

    function() {

    $(

    '#datepicker2').datepicker({

    changeMonth:

    true,

    changeYear:

    true

    });

    });