Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] format property for Ui.RelativeTime and Ui.DatePicker #8

Closed
igotfr opened this issue May 22, 2021 · 3 comments
Closed

[FEATURE] format property for Ui.RelativeTime and Ui.DatePicker #8

igotfr opened this issue May 22, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@igotfr
Copy link

igotfr commented May 22, 2021

the format currently used is "YYYY-MM-DD". The format property would make possible the inputs have the formats:

  • "YYYY-MM-DD"
  • "YYYY-DD-MM"
  • "MM-DD-YYYY"
  • "MM-YYYY-DD"
  • "DD-MM-YYYY"
  • "DD-YYYY-MM"

  • "YYYY/MM/DD"
  • "YYYY/DD/MM"
  • "MM/DD/YYYY"
  • "MM/YYYY/DD"
  • "DD/MM/YYYY"
  • "DD/YYYY/MM"
@gdotdesign gdotdesign added the enhancement New feature or request label May 22, 2021
@gdotdesign
Copy link
Member

We can add a format : String property to control how the time is formatted and also a formatter : Function(Time, Html) property which would allow even more control.

@gdotdesign
Copy link
Member

Added in 88d1c03

@gdotdesign
Copy link
Member

Released in 4.0.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants