Angular Material DatePicker: Month and Day, Exclude Year

后端 未结 2 527
南笙
南笙 2020-12-21 23:52

How do I create a Month and Day Date Picker in Angular, excluding hide year?

This following link will do a Month and Year picker. I am trying to manipulate it, to do

2条回答
  •  猫巷女王i
    2020-12-22 00:09

    I hope you are expecting date format like DD/MMM. If so then change dateInput in display and parse object like below

    dateInput: 'DD/MMM'
    

    Hope this helps.

    Here is the stackblitz code.

    https://stackblitz.com/edit/angular-hw54xf

提交回复
热议问题