This repository was archived by the owner on Feb 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ Option | Type | Default | Description
7878------------- | ------------- | ------------- | -------------
7979date-set="" | String | false | Set a default date to show and init datepicker
8080 | | | ** tip:** _ Do not use same scope for ng-model="date" and date-set="{{date}}", this example is wrong._
81- | | | ** tip:** _ If you want to pass a Date Object inside do like this date-set="{{new Date() .toString()}}"_
82- | | | ** tip:** _ Be sure the date you pass inside date-set="31/11/2017" is not in a different format when using date-format="MM/dd/yyyy "._
81+ | | | ** tip:** _ If you want to pass a Date Object inside do like this date-set="{{newDateObject .toString()}}"_
82+ | | | ** tip:** _ Be sure the date you pass inside date-set="31/11/2017" is always a correct ISO format, or adjust it based on the browser locale "._
8383date-format="" | String | String(new Date()) | Set the date format you want to use, see the list [ here] ( https://docs.angularjs.org/api/ng/filter/date )
8484 | | | ** tip:** _ Be always sure to use a recognized format, maybe try first of all to pass it through new Date('...') and see if it's recognized_
8585date-min-limit="" | String | false | Set a minimum date limit - you can use all the accepted date formats by the javascript ` new Date() `
You can’t perform that action at this time.
0 commit comments