Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
INESBK
Creator
Creator

Problem with format date and time in Metadata Excel File

Hi,

 

I would like to read data from an excel file. Amongst the columns of this file, there are Date and Time columns that are filled using expression in the excel file.
Using talend and when I add a metadata File I get a preview at the beginning of these expressions as shown in Figure 1. And then a weird preview of the data formats in the Date and Time column as show in Figure2. 

How can I solve this problem especially that I need the date column format  be "dd/MM/yyyy" and the time column be "HH:mm:ss" ?

 

Thanks in advance for your help.

 

0683p000009M1n7.png0683p000009M1gM.png

 

 

 

Labels (2)
10 Replies
INESBK
Creator
Creator
Author

Hi,

 

I solved the problem using a routine to convert the date with code.

here is the solution : 

SimpleDateFormat sdf=new  SimpleDateFormat ("EEE MMM dd HH:mm:ss Z yyyy", Locale.ENGLISH);

return sdf.parse(d);