Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My source field contains the following date and time formats:
Nothing
DD/MM/YYYY hh:mm
DD/MM/YYYY
I am struggling to get this into QlikView constistently
and loading it as is , the DD/MM/YYYY come in as possible string
I am struggling to get all the dates loaded as dates and not strings
Can anyone help or point in the right direction
Regards
@spikenaylor1 Maye be :
Date(Floor(Alt(Num(Date#(DateField, 'MM/DD/YYYY')), Num(Date#(DateField, 'DD/MM/YYYY hh:mm')))), 'DD/MM/YYYY') as NewDateField
Example :
Data:
load *,
Date(Floor(Alt(Num(Date#(DateField, 'MM/DD/YYYY')), Num(Date#(DateField, 'DD/MM/YYYY hh:mm')))), 'DD/MM/YYYY') as NewDateField inline [
DateField
07/12/2020
04/12/2020
01/01/2021
24/12/2020 18:32
27/12/2020 11:56
]
output:
Hi,
Have look at this .
https://community.qlik.com/t5/Qlik-Sense-Documents/Multiple-Dates-Using-Alt/ta-p/1493744