How to pick date range in angular material 5.0.0 with datepicker?

后端 未结 8 1927
小蘑菇
小蘑菇 2021-02-02 09:52

I am using the latest Angular Material 5.0.0-rc0 in my Angular 5 app. I am trying to select a range of dates with the datepicker provided with Angular

8条回答
  •  梦毁少年i
    2021-02-02 10:23

    In the mean time you could just have two date pickers. One for the start date and one for the end date. Something like this:

     //start date datepicker
      
      
      
    
    
     //end date datepicker
      
      
      
    
    

    You could then have some where if they change the endDate to something before the startDate it shows them an error or resets the startDate

提交回复
热议问题