jeroenpelgrims / vue-use-query-param

Use url query parameter like regular refs in Vue, in a typesafe way.
9 stars 1 forks source link

Differentiate between date and datetime for `DateParam` #4

Closed jeroenpelgrims closed 8 months ago

jeroenpelgrims commented 8 months ago

Currently the DateParam is actually encoding a dateTime on the url. Sometimes we only want to know the actual date and not the rest of the timestamp. Allow the user to configure the DateParam to choose whether the url should contain only the date part (YYYY-MM-DD) or the entire date string including milliseconds as is the case now.