Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 3c2081a

Browse files
committed
Update README.md
1 parent 69e5148 commit 3c2081a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Option | Type | Default | Description
7878
------------- | ------------- | ------------- | -------------
7979
date-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"._
8383
date-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_
8585
date-min-limit="" | String | false | Set a minimum date limit - you can use all the accepted date formats by the javascript `new Date()`

0 commit comments

Comments
 (0)