We are sending a date value to a date picker property in the form of YYYY-MM-DD (which we’ve confirmed with the app is ISO8601 compliant, but maybe that’s intrinsic of the date when written that way - don’t know what I’m talking about)
we are getting this error:
“validationResults”: [
{
“isValid”: false,
“message”: “2020-12-01 was not a valid long. Portal xxxxxxx, object type 0-3”,
“error”: “INVALID_LONG”,
“name”: “invoice_sent”
}
],
“status”: “error”,
“message”: “Property values were not valid”,
Thanks @dennisedson - am I misreading the FAQ in this case then? One example given is in Unix as you’ve suggested, but it also lists a stock YYYY-MM-DD as an ‘example’ of how to send dates to a Date Picker property.
Here’s a screenshot from this article I’m referring to
Thanks @dennisedson - the docs mention UNIX timestamp - I think we can do that through the app we’re trying to do this with. I don’t know how to determine what endpoint we are posting to, or what a hapikey and json body are, so I’m not sure I can help further o_o
For now I’ll just assume that we need to send it in UNIX in milliseconds, and it’s incorrect to say that date pickers can receive a straight up YYYY-MM-DD value …