nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
20.51k stars 1.25k forks source link

[Feature Request] date-input accept other formats #3286

Open SergioRBJ opened 2 weeks ago

SergioRBJ commented 2 weeks ago

Is your feature request related to a problem? Please describe.

Currently, the DateInput component only accepts dates in the "mm/dd/yyyy" format. I would like to create a new property that accepts a string that changes this pattern, such as "dd/mm/yyyy".

Describe the solution you'd like

In DateInput component, put new property to set the date format, like:

<DateInput format={"dd/mm/yyyy"} />

Describe alternatives you've considered

  1. Input a property that accepts a string.
  2. Input a property that accepts some variants like "dd/mm/yyyy" | "mm/dd/yyyy"

Screenshots or Videos

No response

linear[bot] commented 2 weeks ago

ENG-1026 [Feature Request] date-input accept other formats