In AngularJS, I am using location.search() to get date field from URL passed through in param myDates as below
$scope.myDates= $location.search()['myDates'];
However, it works only if it is in the format
MMMM-DD-YYYY
I need it to be in the format DD-MMMM-YYYY as in 20-12-2010 etc.
How to do that?