calendar.getFormatedDate() returns a date when none selected

The getFormatedDate() api method returns today’s date for a calendar input field when the user did not click on that field to select a date. Is there a way to get the actual user selection?

viewtopic.php?f=7&t=22630&p=73404#p73404