Angular 6 material - how to get date and time from matDatepicker?

前端 未结 3 494
感情败类
感情败类 2020-12-31 21:23

I have this piece of code in my html:


    

        
3条回答
  •  清酒与你
    2020-12-31 21:42

    No, as of now, it is not possible to choose time from matDatePicker. There is still an open issue on github regarding this feature.

    Summary of the issue thread :

    Alternatively you can use one of the following to have dateTimePicker for your project.

    1. MaterialTimeControl - Material Design with Angular Material, CDK, and Flex Layouts

    2. amazing-time-picker - Not built with Angular Material, but built to be compatible with it

    3. date-time-picker - Not fully Material Design, but built with the CDK

提交回复
热议问题