The process is to read from a sql database, write to excel file, then import that excel into another software.
The software expect one of the fields to be a date field. The data coming out of the database is datetime.
I used the DateTimeConverter to go from 20190101000000 to 01/01/2019. I'm using an excel template so I'm setting that field to be of type date. The writer in the workspace is set to be of type date. But the data that is written is text. I can tell it is text because it is left justified instead of right. If I click into the cell and press enter, the data is then right-justified and I'm able to import the excel into the software.
I've looked up this issue and the most common solution I found is to do a "Text to Columns" under the Data tab in excel. I did this in the template, but the data written is still a text
I thought maybe it was the DateTimeConverter transformer, so I created a view in the database to make it a date instead of a datetime. It is still writing out as a text. I'm not sure if the problem lies with FME or Excel.
I have an issue open with Safe Support, but I'm posting it in the forum hoping someone can help me out with this. Maybe a python (I'm not a python person though) at the end to do the manual process of clicking into each cell. Please help! TIA