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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time Stamp Analysis

Hi I have the follwoing time stamp loading from a txt file.

timestamp(dateTimeOrigination/86400+makedate(1970,1,1)+interval#(-5,'h')) as TimeStamp

the output of it is as follow: M/D/YYYY H:MM:SS PM or AM

how can I separte the Month by itself  on a month field and the time on a different field as well?

Thxs,

Badr

Labels (1)
4 Replies
Not applicable
Author

Help Please!

Jason_Michaelides
Partner - Master II
Partner - Master II

Try:

Month(timestamp(dateTimeOrigination/86400+makedate(1970,1,1)+interval#(-5,'h'))) as Month,

Time(Frac(timestamp(dateTimeOrigination/86400+makedate(1970,1,1)+interval#(-5,'h')))) as Time

Hope this helps,

Jason

Not applicable
Author

That didn't work.

Thxs,

Jason_Michaelides
Partner - Master II
Partner - Master II

Please give some more detail - what didn't work, exactly?  Or, better still, post your app.