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: 
sayadutt
Creator
Creator

changing date and time format at loading

Hi,

I am loading data from SharePoint which is of the following format.

4/3/2015 4:15 PM

How can I change it to below format when loading:

04/03/2015 16:15:00

thanks

4 Replies
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

What you want to do is to interpret incoming TimeFormat field and Format it to your desired TimeFormat (displayed Format --24hrs).

Try this

=Timestamp(Timestamp#(MyTimeStampFieldin12HrsFormat,'h:mm:ss TT') ,'hh:mm:ss')

Where MyTimeStampFieldin12HrsFormat is the incoming field from Sharepoint.

Hope this helps

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

I couldn't edit my previous post. You have to give this field a name

=Timestamp(Timestamp#(MyTimeStampFieldin12HrsFormat,'h:mm:ss TT') ,'hh:mm:ss')  AS NewTimeFormat

Hope this helps

buzzy996
Master II
Master II

u can use either date#() and timestamp() functions with the required format.

Not applicable

Hi,

It can works based on your system time format. If you can set 12 hours time format, it will works like this 4/3/2015 4:15 PM and If you can set 24 hours time format, it will works like this format 04/03/2015 16:15:00.