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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Delete Time in date field when the script was loaded from .csv file

Hi i have a script which was loaded from .csv and in that file there is a field called date(02-02-2015 monday 8:53) in this format but i want the date field to display only date like 02-02-2015 when i pulled in to qlik how do do it can any one please tell,

Thanks in advance

3 Replies
settu_periasamy
Master III
Master III

Hi,

Try this..

Date(Date#(Left('02-02-2015 monday 8:53',10),'DD-MM-YYYY')) as Date


Note: I just assumed your format is 'DD-MM-YYYY', you can modify the format based on your data.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

LOAD

*,

Date(Floor(DateFieldName)) AS Date

FROM Datasource;

Regards,

jagan.

avinashelite

if the format is fixed you can also try like this

Date(subfield(date,' ',1),'DD_MM_YYYY') as date

or

Date(Date#(subfield(date,' ',1)),'DD_MM_YYYY') as date