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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date formatting error

Hello All,

    I have  my CSV date data which is of form yyyyMMdd form and i want to result as yyyy-MM-dd hh:mm:ss so i used function TalendDate.formatDate("yyyyMMdd"row1.FKDAT)  but i am getting error string literal not properly closed by double quotes.I also used function TalendDate.parseDate("yyyyMMdd"row1.FKDAT) still getting same error0683p000009Lur8.jpg

 

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

As you have date fields for both input and output, TalendDate.formatDate is not applicable.

TalendDate.formatDate is to convert from string to date datatype.

Simply try to adapt the date format:

0683p000009Lv08.png

The result will be like this:

Starting job test at 23:08 22/05/2017.

[statistics] connecting to socket on port 3472
[statistics] connected
20170522
2017-05-22 12:00:00
[statistics] disconnected
Job test ended at 23:08 22/05/2017. [exit code=0]

 

View solution in original post

1 Reply
TRF
Champion II
Champion II

As you have date fields for both input and output, TalendDate.formatDate is not applicable.

TalendDate.formatDate is to convert from string to date datatype.

Simply try to adapt the date format:

0683p000009Lv08.png

The result will be like this:

Starting job test at 23:08 22/05/2017.

[statistics] connecting to socket on port 3472
[statistics] connected
20170522
2017-05-22 12:00:00
[statistics] disconnected
Job test ended at 23:08 22/05/2017. [exit code=0]