[Demo] DatePicker Date Format as "yy-mm-dd"

[Demo] DatePicker Date Format as "yy-mm-dd"

by santhosh lanka

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css">
<div ng-app="plunker">

<div ng-controller="DatepickerDemoCtrl">
    
    <h4>End</h4>
    <div class="form-horizontal">
        <p>
            <input type="text" datepicker-popup="{{format}}" ng-model="end" is-open="endOpened" min="minEndDate" max="maxEndDate" datepicker-options="dateOptions" close-text="Close" />
            <button class="btn" ng-click="openEnd()"><i class="icon-calendar"></i></button>
        </p>
    </div>
</div>
</div>

TypeScript

angular.module('plunker', ['ui.bootstrap']);
var DatepickerDemoCtrl = function ($scope, $timeout) {
  $scope.end = new Date();
  
   //init value
  $scope.maxEndDate = $scope.end; //fixed date same as $scope.maxStartDate init value







};