cancel
Showing results for 
Search instead for 
Did you mean: 

Import french date using Nuxeo CSV

ITShine_
Star Contributor
Star Contributor

I've read in Nuxeo CSV documentation that : dates must use the format MM/dd/yyyy, i want to know if there is a way to use this format : dd/MM/yyyy istead . Any suggestions ?

1 ACCEPTED ANSWER

Antoine_Cordier
Star Contributor
Star Contributor

Looks like the date format is defined in this class: https://github.com/nuxeo/nuxeo-csv/blob/a7aa5bb1658fc5b11d6cc435bdebfc5bbabca9bc/src/main/java/org/n...

So maybe just git clone, modify the date format and mvn install will do the job. At first glance it doesn't look like you can tweak this by xml configuration but maybe I'm wrong

View answer in original post

2 REPLIES 2

Antoine_Cordier
Star Contributor
Star Contributor

Looks like the date format is defined in this class: https://github.com/nuxeo/nuxeo-csv/blob/a7aa5bb1658fc5b11d6cc435bdebfc5bbabca9bc/src/main/java/org/n...

So maybe just git clone, modify the date format and mvn install will do the job. At first glance it doesn't look like you can tweak this by xml configuration but maybe I'm wrong

Manon_Lumeau
Star Contributor
Star Contributor

Hi,

To be able to modify the date format you need to override the actions bean: @Name("csvImportActions") and extend the org.nuxeo.ecm.csv.CSVImportActions. Then, you need to redefine the importCSVFile method (see this page). With this method, you will be able to change the CSVImporterOptions objet to handle your date format.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.