Hello. Could you clarify which datetime format sh...
# ask-questions
l
Hello. Could you clarify which datetime format should I use for string->date string format while setting attributes? unixtimestamp or iso8601 or smth else?'
r
This is a relatively new feature introduced in version 3.1, that will render a date picker. Dates entered with the date picker will be saved as an ISO-formatted Date string (e.g. ​`2024-07-23T20:06`​
l
@flaky-noon-11399 Thanks, but I've asked about setting this attribute from clients (web / ios / android). I haven't found any documentation about it
r
Sorry for the delayed response here. We don't have a date type, so it would just be a string. If you use a standard date format like ISO, normal string comparisons work correctly. The important part is that it goes year, month, day, etc. So starting bigger and getting smaller. That allows normal string comparisons to work as expected. https://docs.growthbook.io/features/targeting#attribute-data-types
l
Thanks!
🙏 1
f
You're welcome!