I am building a Google Data Studio connector with a field called date. The field's type is YEAR_MONTH_DAY. Now, when I return a string, for instance "2020-09-22", the field shows null as a result. What value should my connector provide to have Data Studio recognize it as a date?
1
votes
3 Answers
1
votes
"2020-09-22" is of type YEAR-MONTH-DAY, not YEAR_MONTH_DAY
Without knowing the specifics of the connector you are using:
- Be careful theat your provided format matches the expected one
- Read about supported Dates and times in Data Studio
- If necessary, use date formatting methods like e.g.
TODATE - If the DATE field you are talking about is the absolute date as mentioned here, the expected format is
YYYYMMDD.
1
votes
-2
votes
The expected date format for the connector is YYYYMMDD, without any separator.
You can check the official documentation: https://developers.google.com/datastudio/connector/reference?hl=en#semantictype