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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
userid128223
Creator
Creator

iso date format

I am trying to read data via HTTP call:

Orignal Data:

Date: "2017-05-19T13:43:40.200Z"

However when it comes into qlikview i get below.

2017-05-19 13:43:40

How can i get orignal format.

Query is called via SQl.

Table:

SQL Select

Date

from JSON(wrap off) .........

4 Replies
Anil_Babu_Samineni

Just use Date# function in Qlikview like below and it will deserve the issue

Date#(DateFieldName) as DateFieldName

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
userid128223
Creator
Creator
Author

It is comming in wrong from SQL statement hence Load statement wont correct anything.

Digvijay_Singh

You may use Dual to make it to desired format, like below, may not work exactly but just an idea -

Load Dual(Left(Date,10)&'T'&mid(Date,12,8)&'.000Z',Date) as Date;

Load Date inline [

Date

2017-05-19 13:43:40 ];

Anil_Babu_Samineni

Can you share the script for Date where you fetch from DB. Can you show case exactly the values as you are getting

I assume, you may need here

Table:

Load Date#(Date) as Date;

SQL Select

Date

from JSON(wrap off) .........

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful