I want to calculate the difference between NOW() and a formula column containing strings formatted as “yyyy/mm/dd”.
As per the documentation, DATETIME_DIFF can take strings formatted as yyyy/mm/dd. This works for constant but for columns I get the error the “field with string type found when date expected”
I have a column of strings that comes from another source whose field type is string and I don’t want to modify the same.
How can I create a new column that stays in sync with the column containing strings but with the field type of Datetime ?
A formula column with a function for converting strings to datetime is what I was looking for.
I will see if I can try to emulate this with the API.
Thanks