Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi how do I format a date and time into a date only expression
YYYY/MM/DD 12:00:00 AM to YYYY/MM/DD
May be this:
Date(Floor(DateandTimeField), 'YYYY/MM/DD') as Date
or if it isn't read as timestamp, then this:
Date(Floor(TimeStamp#(DateandTimeField, 'YYYY/MM/DD h:mm:ss TT')), 'YYYY/MM/DD') as Date
Check here for more understanding about date in QlikView
date(floor(yourdatefield),'YYYY/MM/DD')
floor could be optional
Try this may be?
Replace the date with your DateField without Quotes.
= Date(Date#('2017/02/08 12:00:00 AM', 'YYYY/MM/DD hh:mm:ss tt'), 'YYYY/MM/DD')
I would use Floor() function or DayName to get rid of time component here...
Got it. Yes, it is better to use the Floor() to convert easily.
Try;
=Date(MakeDate(Subfield(DateTime,'/',1),Subfield(DateTime,'/',2),Subfield(Subfield(DateTime,'/',3),' ',1)),'YYYY/MM/DD')