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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date conversion is not working

Hi all

i am taking timedate from oracle database

which is in the format as MMM DD YYYY hh:mmTT

for taking count i converted this in qv script like

Date(Floor(Date#(timedate,'MMM DD YYYY hh:mmTT')),'DD/MM/YYYY') as Date

but with this i am getting only few dates

some thing like for 1/15/2016 we have 4 dates in oracle db

but in qlikview it is showing only two

what might be the reason

please help me

regards,

Mahesh

13 Replies
prasadcm
Creator II
Creator II

Thanks a lot.

Its working perfectly.

Michiel_QV_Fan
Specialist
Specialist

prasadcm
Creator II
Creator II

Hi,

I want to include time along with date,

I tried it

date(date#(subfield(RECIEVED_DATE, chr(32), -1)&subfield(RECIEVED_DATE, chr(32), 2)&subfield(RECIEVED_DATE, chr(32), 3)&SubField(RECIEVED_DATE,chr(32),4), 'YYYYMMMDD hh:mm:ss'),

'DD/MM/YYYY hh:mm:ss')

Where am I going wrong?

Michiel_QV_Fan
Specialist
Specialist

timesatmp(Timestamp#(...))  instead of date.