Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Join date with time

Hi everyone,

I'm trying to concatenate a field time to a filed date, but I have a liatle problems.

the result is wrong and weird!

this is the result...

Fecha is Date,

Hora is Time and

FechaHora should be the result

Captura.PNG

I´m trying this..

table1:

LOAD

Date(Fecha,'DD/MM/YYYY') AS Fecha,

  time(Hora,'hh:mm:ss TT') AS Hora,

  Date(Date(Fecha,'DD/MM/YYYY') + time(Hora,'hh:mm:ss TT'),'DD/MM/YYYY hh:mm:ss TT') AS FechaHora,

....

1 Solution

Accepted Solutions
sunny_talwar

You mean this:

Date#(Fecha  & ' ' &  Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora;

View solution in original post

9 Replies
sunny_talwar

How about this:

TimeStamp(Fecha + Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora,

tamilarasu
Champion
Champion

Another solution,

Date(Fecha  & ' ' &  Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora;

sunny_talwar

You mean this:

Date#(Fecha  & ' ' &  Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora;

tamilarasu
Champion
Champion

I think interpretation is not needed in this case. I have not checked but it might work (I guess).

Not applicable
Author

What is the diference betweem Date and Date#?

both worhk!

sunny_talwar

May be you are right, but I would put the interpretation just to be on the safe side

tamilarasu
Champion
Champion

I agree.

sunny_talwar

Date is formatting function, where as Date# is interprestation function which helps QlikView understand date in case it is not in a regular format (format described in the environmental variables)

tamilarasu
Champion
Champion

Daniel,

Below link might be helpful for better understanding.

The Date Function