Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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,
....
You mean this:
Date#(Fecha & ' ' & Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora;
How about this:
TimeStamp(Fecha + Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora,
Another solution,
Date(Fecha & ' ' & Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora;
You mean this:
Date#(Fecha & ' ' & Hora, 'DD/MM/YYYY hh:mm:ss TT') as FechaHora;
I think interpretation is not needed in this case. I have not checked but it might work (I guess).
What is the diference betweem Date and Date#?
both worhk!
May be you are right, but I would put the interpretation just to be on the safe side
I agree.
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)