For example, using a date and time control, the user selects a date and time, such that the string representation is the following:
\"6-25-2012 12:00:00 PM\"
I am using a filter before sending the date to the server vm.dateFormat = 'yyyy-MM-dd'; dateToSendToServer = $filter('date')(dateFromTheJavaScript, vm.dateFormat);