I have a Dynamic Writer using Schema From Table referenced as Workspace Resource. Reading GML there is a date attribute with format as YYYY-MM-DD which is the Reader schema sees as xml_date type. There is a SchemaMapper process happening and the schema from table defines the target data type as fme_date. Problem is the target format wants the date formatted as YYYYMMDD (no dashes). If I format the dates using a DateFormatter transformer all is good. If not the features are dropped.
Rather than using a DateFormatter (where I need to specify all the data attributes) I'd prefer something a bit more generic. Was thinking a Python script to look at the data types of the attributes but there didn't seem any method within FMEObjects to do this. Next possibility is Python to check each attribute value to see if they are dates formatted YYYY-MM-DD and reformat.
All seems a bit clunky so thinking there is something obvious I've missed! Thanks.