Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Date format help

Hi Experts,

Can any one please help me to convert the below date formats.

I have extracted Date1 and Date2 fields from SharePoint and stored in to qvd.

When I have taken those dates into table I am getting below format.

Here I have to show 13/06/2017     for  2017-06-12T23:00:00Z  and

                                 15/06/2017     for   2017-06-14T23:00:00Z  etc...

Please help me on this.

date format.png

Thanks in advance.

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Add a date parameter out side:

date(ConvertToLocalTime(timestamp#(replace(F1,'T',' '),'YYYY-MM-DD hh:mm:ssZ'),'Kolkata'),'DD/MM/YYYY') as Date;

1111.JPG

Best Regards,
KC

View solution in original post

7 Replies
YoussefBelloum
Champion
Champion

Hi,

try this:

Date(TimeStamp#(Date),'DD/MM/YYYY') as Date

mahitham
Creator II
Creator II
Author

Hi Youssef,

Thanks for your reply.

By applying the above syntax for Date1 I am getting 12/06/2017 but that format is equal to 13/06/2017.

2017-06-12T23:00:00Z here T23:00:00Z  need to consider.


Please help me on this.

jyothish8807
Master II
Master II

Hi Mahitha,

Try this:

ConvertToLocalTime(timestamp#(replace(F1,'T',' '),'YYYY-MM-DD hh:mm:ssZ'),'Kolkata') as Date;

Note: F1 will be your date field

Br,

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Add a date parameter out side:

date(ConvertToLocalTime(timestamp#(replace(F1,'T',' '),'YYYY-MM-DD hh:mm:ssZ'),'Kolkata'),'DD/MM/YYYY') as Date;

1111.JPG

Best Regards,
KC
mahitham
Creator II
Creator II
Author

Thanks a lot Jyothish

neelamsaroha157
Specialist II
Specialist II

If date formatting is not working for you then may be you can use makedate(left(Date,4), mid(Date,6,2), mid(Date,9,2)).

jyothish8807
Master II
Master II

You are welcome

Best Regards,
KC