I am using a date time field to help make a call to the Open Weather Maps API. However, the UNIX time string that gets returned from the date question is 13 characters long, and the API only wants it to be 10 characters long as to not throw an error. Is there a way to limit the Date Time to only return a 10 character string?
Example of default string length:
API Response from 13 character UNIX Time string (as pictured above):
API response after removing 3 trailing zeros:
Thank you,
Mike F.
Solved! Go to Solution.
So after writing out this post, I inspired myself and was able to solve the issue using the function:
substr(${Sample_Date}, 0, 10)
So after writing out this post, I inspired myself and was able to solve the issue using the function:
substr(${Sample_Date}, 0, 10)