Home > OS >  Force date range picker to always display in a chronological order
Force date range picker to always display in a chronological order

Time:06-01

I have vuetify date range picker

enter image description here

Right now it displays

enter image description here

I would like to force to always display in a lesser date order first for my model.

Ex. 5/1/2022 - 5/14/2022

CodePudding user response:

You can use a computed prop to sort/format the dates, and bind the result to the text field's value:

                                    
  • Related