Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
janhess
Creator II
Creator II

Metadata default date format

Is there any way in TIS 4.0.2 to change the defult metadata date format of dd-MM-yyyy? All my dates are in yyyy-MM-dd format from files and databases.
Labels (2)
11 Replies
vladika
Contributor
Contributor

When importing from plain txt source (tabdelimited, etc..) you have to match format as it is written inside the file you're about to import into job.
In schema editor, define the appropriate field as Date and double click on the date DatePattern and write down your format or just use CTRL+SPACE for suggestions.
For example, if your starting .csv file has date in numeric format: 17032011, you would write in DatePattern field in schema editor: "ddMMyyyy".
Once inside talend, you can just use the default format "dd-mm-yyyy". At the end of the flow:
1. If you're dumping data into say tabdelimited file, you can choose again the Date Pattern
2. if you're dumping the data into some database, there's no option to specify the date format. Database will use it's own.
janhess
Creator II
Creator II
Author

I need to be able to change the default automatically generated date pattern so when I generate a table schema for a database I want the pattern as yyyy-MM-dd not dd-MM-yyyy. I don't want to have to change anything in the schema as there are dozens of date fields in the database.
I was hoping there would be something to change in the Talend preferences.
alevy
Specialist
Specialist

What DB are you using? As vladika said, generally for a DB, a date is a date is a date. It does not have a format as such. The way dates are displayed by the DB is native to the DB and cannot usually be set at the field/table level. So, when writing a Date to a DB, it does not matter what the Date Pattern is in Talend. The Talend Date Pattern is only relevant when reading from/writing to flat-files.
janhess
Creator II
Creator II
Author

I just want to be able to change the default so it applies to any date from anywhere!!
Anonymous
Not applicable

I second janhess' request.
I also want to have the default date pattern "yyyy-MM-dd"
Is that possible?
Anonymous
Not applicable

We really need this option as well.
I don't see why the mapping.xml file cannot have an attribute for default date pattern just like the other fields (length, precision, etc).
if you have a job that requires hundreds of patterns to be declared, it literally makes the product unusable. You want to waste hours of an engineers time changing a text box when the UI could just default the value from your xml config.
Shameful.
Anonymous
Not applicable

up.
any news?
Talend should really include a customizable global/per-project/per-DBMS default datepattern.
Very much needed.
I see also an opened ticket:
http://jira.talendforge.org/browse/TDI-13550
Anonymous
Not applicable

Hi All
I agree that it is an interesting and useful feature, our R&D team have known it.
Best regards
Shong
Anonymous
Not applicable

Hi talend team
We are also having this problem. It seems if there are schema changes on our job, it will revert our yyyy-MM-dd date format, to the default dd-MM-yyyy format. Which will force us to change every single date format in the schema again. It would be nice where there is a sort of default date that can be adjusted in talend preferences or something.
Anyways, 
Sincerely
Locke