Closed evantahler closed 9 years ago
Hi Evan,
As the Sailthru API is JSON based, there is no Date datatype and there is no way to create a Date type var via the API. However, there are conventions that will allow the var to be treated as a date for certain Query Builder criteria as well as Zephyr functions that operate based on dates/times. The best approach is to use a Unix timestamp passed as an integer type. If you have further questions about this, feel free to reach out to Sailthru Support as it's more a general usage question.
Rob
Got it. I would then suggest that this API cast all Date()
objects to integers.
Consider the example:
The
joined_date
is stringified currently, and not represented as a timestamp when uploaded to Sailthru, for example: