Is it possible to hide the date in the datetime-input?
This is not currently possible with the datetime-input component. There is a Time UI Component on our Planned Roadmap where you can vote on the importance.
In the meantime, there are a few options if it is critical to hide the date:
- Use the
text-inputcomponent and write a custom validation function to check that the entry is in the expected time format. - Use an
object-tableto display and edit the time withedit-time.
3 Likes
Update: We have just released the new time-input component, allowing users to enter a time value only. Docs can be found here.