Closed 0livare closed 9 months ago
@jquense is this something you would consider?
yes open to this 👍
@jquense Just a heads up that I believe I have addressed both of your comments!
@0livare sorry this is taking so long but can you fix the build?
@jquense build is fixed! (no changes, I just rebased onto the latest master)
thanks!
yup.date()
always attempts to parse input into aDate
object. Sometimes that is undesirable and you just want the string to be left alone. Currently yup does not have a solution for that use case, but that's where.datetime()
comes in!With an API inspired by zod.datetime,
datetime
also provides greater control over the exact required format of the ISO string thandate
does.