Check out this Plunk for reference.
This is how my controller is set up:
app.controller("myController", [
"$scope",
function($scope){
$scope.DateFormat = "DD/MM/YYYY";
$scope.From = '15/01/2015'; // DD/MM/YYYY
$scope.To = '31/12/2015'; // DD/MM/YYYY
}]);
When I use it in the HTML, it looks like this:
<input type="text"
ng-model="From"
data-provide="datepicker"
date-format="DateFormat" />
However, the date format always comes out as MM/DD/YYYY
, which causes issues on the backend. Any ideas on how to fix this?