You can have a datetime picker when using matInput with type datetime-local like so: <mat-form-field> <input matInput type="datetime-local" placeholder="start date"> </mat-form-field>您可以点击占位符的每个部分来设置日、月、年、小时、分钟以及是上午还是下午.You can click on each part of the placeholder to set the day, month, year, hours,minutes and whether its AM or PM. 这篇关于角度材料日期时间选择器组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-04 03:14
查看更多