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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
anthony_kinsell
Creator
Creator

Time Formatting

I've got what I think will be a quite straightforward query. I'm trying to get just the time element of the below:

22/11/2012  10:30:00

The filed that gives this value is named 'ActivityDateTime ' so I put in the following formula:

Time (Right(ActivityDateTime,8)) as ViewingTime,

This works only for some of my data which find odd?

1 Solution

Accepted Solutions
MayilVahanan

Hi

Hope ActivityDateTime is datetime field, if so try like this

Time(ActivityDateTime) As Time;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
anthony_kinsell
Creator
Creator
Author

Anonymous
Not applicable

Anthony

Try something like :

     time(ceil(date(date#('22/11/2012 10:30:00' ; 'DD/MM/YYYY hh:mm:ss')

Best Regards,     Bill

MayilVahanan

Hi

Hope ActivityDateTime is datetime field, if so try like this

Time(ActivityDateTime) As Time;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
anthony_kinsell
Creator
Creator
Author

Thanks,

I was overcomplicating it!!