8
votes

How I can display only month and year using md-datepicker directive?

Currently, There is no information is available in Angular Material Documentation.

Can anyone help?

1

1 Answers

1
votes

You can pass mode to the md-datepicker directive md-mode="month"

e.g

    <md-datepicker ng-model="dateFields.selectedDate"
                   md-mode="month">

enter image description here