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

Commit 12e86c8

Browse files
committed
Allow to set default date format
1 parent 408b1fb commit 12e86c8

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Original changes by [@mpasko](https://github.com/mpasko/angular-datepicker).
1414
* Picker height is independent of width, Picker width is bound up to reasonable value.
1515
* Startup date is initialized with existing date on input control
1616
* Changed colors to mimic bootstrap
17+
* Allow to set default date format via `datepickerConfigProvider.defaultDateFormat`
1718

1819

1920
[![Join the chat at https://gitter.im/720kb/angular-datepicker](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/720kb/angular-datepicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -129,7 +130,7 @@ You can set the titles for the month and year selectors with the **date-year-tit
129130
<datepicker date-year-title="selected title">
130131
<input ng-model="date"/>
131132
</datepicker>
132-
133+
133134
####Custom buttons
134135
You can customize the calendar navigation buttons content, let's make an example while using [FontAwesome](http://fontawesome.io)
135136

@@ -149,7 +150,7 @@ You can also set the titles for the left and right arrows with **button-next-tit
149150
</datepicker>
150151

151152
####Input as grandchild
152-
Sometimes you cannot put date input as a first child of datepicker. In this case you may use `selector=""` to point to the CSS class of the input. Below example with using Twitter Bootstrap and FontAwesome
153+
Sometimes you cannot put date input as a first child of datepicker. In this case you may use `selector=""` to point to the CSS class of the input. Below example with using Twitter Bootstrap and FontAwesome
153154

154155
```html
155156
<datepicker date-format="yyyy-MM-dd" selector="form-control">

0 commit comments

Comments
 (0)