Giter Site home page Giter Site logo

Comments (2)

miroslavstastny avatar miroslavstastny commented on June 7, 2024

Thanks for reaching out. Could you please be more specific on what the requirement is?

Is it about a single component which combines date picker and time picker in a single popover?
Our current guidance is to use DatePicker and TimePicker side by side, as documented in Time Picker With Date Picker example.

Or about custom formatting for time?
TimePicker component allows you to use custom formatter and parser, see Freeform Custom Parsing example.

from fluentui.

EdgarKisman avatar EdgarKisman commented on June 7, 2024

Is it about a single component which combines date picker and time picker in a single popover? Our current guidance is to use DatePicker and TimePicker side by side, as documented in Time Picker With Date Picker example.

Or about custom formatting for time? TimePicker component allows you to use custom formatter and parser, see Freeform Custom Parsing example.

Both, we need a component which combines date picker and time picker in a single popover (current solution "datetime-locale), and also the possibility to format the chosen datetime to display it to the user in the selected locale of the application (no solution atm).

The case is that some of our users are only able to use a mouse. Using separate fields for Date and Time would be ok but not the best solution as the user would need to do a lot of scrolling to pick the exact time he requires, e.g. 18:41.
We would also need to concatenate date and time programmatically to send it to our backend.

The solution we have atm is using v9 <Input type="datetime-locale"/> the problem with the native type "datetime-locale" is, that there is no implementation to format the chosen datetime to display in the current user locale. Setting timezones, Using datetime-local inputs

Something like <Input type="datetime-locale"/> but with the ability to pass a locale or to format the input to show it to the user in the selected locale would be the solution we are looking for.

That's why I was thinking of something like a DateTimePicker component with props like formatDate and also fluentui styling.

from fluentui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.