AngularStrap credential showing wrong date

I faced the following problem: angularStrap datepicker: if I set any date of 2014 through the controller, then the displayed value is the same, but from 2013.

For example: if I set a value 2014-10-12

in the controller then the displayed value will be2013-10-12


<div ng-app="myApp" ng-controller="myController">
    <input type="text" placeholder="Select Date" ng-model="updated_at" bs-datepicker data-date-format="yyyy-MM-dd" data-date-type="string" data-autoclose="1">



angular.module('myApp', ['mgcrea.ngStrap'])
    .controller('myController', function ($scope) {
    $scope.updated_at = '2014-10-12';

There are no such problems with dates from other years.


There is no problem in IE11 and Firefox, but the problem exists in Google Chrome 38.0.2125.101 m (Windows 7 64-bit)


source to share

All Articles