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: 
Anonymous
Not applicable

JSON Unparseable date format

Can someone get me right date format pattern for the below date style. I get this format in my JSON.
"2018-05-08T05:54:19.360+0000"

 

I have tried following formats but none of them works.
"yyyy-MM-dd'T'HH:mm:ss.SSSZ"

"yyyy-MM-dd'T'HH:mm:ss.SSSx"

"yyyy-MM-dd'T'HH:mm:ss.SSSX"

Thanks

Labels (3)
4 Replies
vboppudi
Partner - Creator III
Partner - Creator III

Hi,

 

Are you looking for the following output?

0683p000009LxVS.png

Please use : TalendDate.parseDateInUTC("yyyy-MM-dd'T'HH:mm:ss.SSS",row2.date_string) 

 

Regards,

Anonymous
Not applicable
Author

Hi Veeru, Thanks for the answer, but I have to parse the date in json input component, so I need the exact date format with timezone offset.

Anonymous
Not applicable
Author

Hi Zahoor,

Are you able get exact date format?
vaibs_parab
Contributor II
Contributor II

Hi @Zahoor Zahoor​  and @Arpit Verma​ ,

 

If your date is like this "2018-05-08T05:54:19.360+0000"

 

then your pattern should be as follows:

"yyyy-MM-dd'T'HH:mm:ss.SSSXXX"

 

Please try and let me know.

Regards!