Does uniforms SchemaBridge supports the String Built-in Formats? #941
-
It seems the "Date": {
"format": "date",
"type": "string",
} How can I tell uniforms to render that property as Date and not Text? [1] https://json-schema.org/understanding-json-schema/reference/string.html#built-in-formats |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I see |
Beta Was this translation helpful? Give feedback.
-
Hi, @rafaeltuelho! As you already noticed, it does support In the end, we ended up with There are a lot of date and time pickers out there, and so we suggest creating custom fields using them, based on your theme and preference. And to make it "automatic", i.e., work with Having said all that... Safari 14.1 got released literally this week and supports all of these (link). Finally! |
Beta Was this translation helpful? Give feedback.
Hi, @rafaeltuelho! As you already noticed, it does support
date-time
. The problem with date/time/datetime inputs is that there's no good HTML support across all browsers (Firefox and Safari were "behind"). However, the goal of uniforms was to provide themes that can handle all schemas, at least at a decent level (mind the difference: all of them as good as possible, not as many as possible ideally).In the end, we ended up with
datetime-local
(source) to make it unified across themes. It's not ideal, but (mostly) works.There are a lot of date and time pickers out there, and so we suggest creating custom fields using them, based on your theme and preference. And to make it "automatic", i.…