更新时间:2023-11-29 11:40:40
您可以使用 dateFormat
选项指定一个MMMM DD YYYY
令牌,其中:
You can use dateFormat
option an specify MMMM DD YYYY
tokens where:
MMMM
是名称月份DD
是月份中的一天YYYY
是年份MMMM
is name monthDD
is day of the monthYYYY
is the year如 momentjs文档所述.
您的代码将如下所示:
<material-datepicker [dateFormat]="'MMMM DD YYYY'" placeholder="Select Date" [(date)]="currentDate" name="currentDate" required></material-datepicker>