You need to sign in to do that
Don't have an account?
Jgk k
Changing the Date Format in data export via Command Line Dataloader
Hello ,
I have a requirement to export data from salesforce using commandline dataloader.I have sucessfully extracted data, but the date fields in my current extract are in format YYYY-MM-DD. My requirement is to get date fields in MM-DD-YYYY format. I have tried using FORMAT() but that doesn't work.
Can anyone suggest me a way to change the format of date fields?
Thanks in advance.
I have a requirement to export data from salesforce using commandline dataloader.I have sucessfully extracted data, but the date fields in my current extract are in format YYYY-MM-DD. My requirement is to get date fields in MM-DD-YYYY format. I have tried using FORMAT() but that doesn't work.
Can anyone suggest me a way to change the format of date fields?
Thanks in advance.
I read the source code of the dataloader and there is no post-processing by the CSVwriter of the data read in bulk mode from Salesforce.
You cannot change the format of the witten dates by the dataloader.
The only option if to create a new custom field.
https://github.com/forcedotcom/dataloader/blob/master/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileWriter.java
All Answers
I read the source code of the dataloader and there is no post-processing by the CSVwriter of the data read in bulk mode from Salesforce.
You cannot change the format of the witten dates by the dataloader.
The only option if to create a new custom field.
https://github.com/forcedotcom/dataloader/blob/master/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileWriter.java
If this is the only way, then it doesn't serve my purpose. Anyways, thanks for letting me know.
Not impossible but time consuming and a new custom field formula is sufficient here.
Otherwise, you modify the exported data (post process) of course (the trivial answer).