Skip to content

Set time via props #28

@sebsobseb

Description

@sebsobseb

Hi,

Right now, when you select a date, the time is always the current time. This is fine in the majority of the cases.
But, I think it would be useful if we could set the time of the date that is emitted to v-model.

Context: I have a project where we have a lot of datepickers for "from" and "until" dates.
We always want to force the time of "from" dates to 00:00:00 and "until" dates to 23:59:59. Currently we always have to modify it after the date was picked.
This feature would be pretty handy for this 🥇

Here are my 2 proposals:

  • Have 1 optional prop named set-time, which would accept a string in format HH:MM:SS
  • Have 3 optional props, one for each unit:
    • set-hours, which would accept an integer from 0 to 23.
    • set-minutes, which would accept an integer from 0 to 59.
    • set-seconds, which would accept an integer from 0 to 59.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions