By setting up an Action Flow to create and send a CSV, I don't want to display the timestamp within the CSV. The "formatDate" function does not work. Does anyone know, why this is happening?
Question
By setting up an Action Flow to create and send a CSV, I don't want to display the timestamp within the CSV. The "formatDate" function does not work. Does anyone know, why this is happening?
I would add this formula to your query module beforehand: LEFT(TABLE.COLUMN, 10) and then only use the formatDate(Confirmed for; DD.MM.YYYY) in the CSV module.
To extend on @julia.bauer's solution, the LEFT operator only works with columns of type STRING. In that sense, you must first cast the datetime column to string using TO_STRING.
the problem is, that I need the type Timestamp, as the date I will show in the CSV in the end, need to be the ROUND_MONTH and this is not possible with the type String.
Within the Create CSV module, what is the data type you're sending?
If you're sending this as a date, Excel will read the timestamp in. If you send as text, it'll send in whatever format you put together.
I'd also recommend putting together a "Set Variable"/"Set Multiple Variables" module before the CSV setting the date format and then passing the formatted date into the CSV. I've found it runs smoother that way.
@julia.oppen11 : You can see and change the data type within the Data Structure "SWF_Delivery Reliability by clicking on the three dots ans select "Edit".