Hello ThoughtSpot Support,
Hello ThoughtSpot Support,
I am encountering an issue with the ThoughtSpot API regarding the retrieval of precise dates in datetime format. Currently, the dates are returned as Unix timestamps, which complicates their manipulation and display in a readable format. Additionally, the dates are automatically rounded to the beginning of the month, which skews the data.
Query :
Example Response:
json
[
{
"Person ID": 12345,
"Birth Date": {
"v": {
"s": 930787200
}
},
"Registration Date": {
"v": {
"s": 1706745600
}
}
},
...
]
Can you help me resolve this issue? Is there a specific configuration in the API or a method to obtain correctly formatted dates directly via the ThoughtSpot API, without rounding to the beginning of the month?
Thank you for your help.
1 Reply
Epoch is the standard date format used across TS APIs. Also if we have aggregation for the month, the date will automatically be rounded to the beginning of month since that is less ambiguous. Do you want the exact date without aggregation? Maybe after retrieval you can change the dates using your own library functions? You can try to use the formulas provided in TS to maybe change the dates to not come as beginning of the month..