Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
joris_lansdaal
Creator
Creator

Help - Timestamp

Hi all,

in several logfiles I encounter the following Timestamp '20160421T102714.000+0200'.

Currently I have: SET TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]';

The problem I have is that I can't convert it to Date, Week, Month... as a matter of fact I can't use it at all.

Any suggestions?

19 Replies
joris_lansdaal
Creator
Creator
Author

I do have a solution by breaking up the timecode. Like,

Month(Date#(Left(Timestamp,8),'YYYYMMDD')) as Month.

But I am curious in what rooky misstake i'm making.

sunny_talwar

True, would you be able to share the script you used??

joris_lansdaal
Creator
Creator
Author

Here's the QVW.

When I ran the original from the server it worked fine (I found this QVW inside the community. Then I copied the content to document and further wanted to developed it, colors etc; because i have a personal edition.

The only thing bothering me is that timestamp....

sunny_talwar

I was not able to find TimeStamp field, but there was EventsTimeStamp field. Check this:

Capture.PNG

=Date(Floor(TimeStamp#(Left(EventsTimestamp, 15), 'YYYYMMDDThhmmss')))

joris_lansdaal
Creator
Creator
Author

stempel.PNG

Amazing.........

joris_lansdaal
Creator
Creator
Author

The field Timestamp is dropped in the Time Tab

sunny_talwar

Could be the version issue. What about this:

=Date(Floor(TimeStamp#(PurgeChar(Left(EventsTimestamp, 15), 'T'), 'YYYYMMDDhhmmss')))

joris_lansdaal
Creator
Creator
Author

THANK YOU!

joris_lansdaal
Creator
Creator
Author

Thanks for helping me out. Great document!

Colin-Albert

Hi Joris

A good overview of issues related to date & time data are in these posts...

Why don’t my dates work?

Get the Dates Right

QlikView Date fields