DateInput value as string #6441
Unanswered
joshxyzhimself
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello to my mantine overlords,
It appears that
valueFormat
only affects the value displayed to the user,not the value output by the element itself which is
Date
instead ofstring
.Context:
iso 8601 date
format.z.string().date().nullable()
which is straightforward on the form-level and the rest-api level since in json we can only encode strings not date objects.Date
object output, and there is no option (that im aware of) to produce just iso date strings.Thank you thank you!
I ended up settling with:
Beta Was this translation helpful? Give feedback.
All reactions