Hello Guys,
I need some help.
I'm using a Date input to collect several dates, but I wanted to create some rules taking information from dates already entered (which I stored in variables) to limit upcoming dates. Example: I have a field that I call Shipping_Date and another that is Receipt_Date, when the person enters the Receipt_Date, it can never be before the Shipping_Date.
I tested putting the dates manually and everything works fine, but when I use the variable dates, it doesn't work. From what I gather, it's related to how I'm storing the date. By default I'm using DD/MM/YYYY, but this field expects to receive YYYY-MM-DD
I tried changing my field to store in this format, but when I did that I got this error:
{
"status": 500,
"body": {
"message": "Use
yyyy
instead of YYYY
(in YYYY-MM-DD
) for formatting years to the input Mon Jan 01 2024 12:00:00 GMT+0000 (Coordinated Universal Time)
; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md",
"code": "INTERNAL_SERVER_ERROR"
}
}
Any way how to resolve this?
Note: I know you won't be able to see it, but I created a flow with lots of details / checks including validations and data search (attachment)
Thank you
Eric
2 Replies
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
@Vilela That would be what you showed, I'm doing it this way, putting validation in this field option so as not to let the person choose a previous date, but it only works if the date is in the format YYYY-MM-DD
