In the datePicker selected 20.04.2012. I want to get this value, format it and store in a variable. I uses this code:
20.04.2012
var date = $(\"#scheduleDate\"
Use jquery-dateFormat. It will solve your problem.
You need to include the jquery.dateFormat in your html file.