Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

asmithbi
Contributor II

Remove Timestamp

Hello,

I am trying to remove the timestamp on a date field.  The date values are formatted as 2017-02-23T00:00:00.

I tried the following functions to remove the timestamp but, they all did not work.

  • Date(Floor(Date),'YYYY-MM-DD) As Date
  • Date(Date#(Left(Date,10),'YYYY-MM-DDT00:00:00'),'YYYY-MM-DD') As Date
  • Date(SubField(Date,' ',1)) As Date

Does anyone have suggestions as to how I can remove the timestamp? 

Thank you in advance for any assistance! 

1 Solution

Accepted Solutions
marmentrout5
Contributor

Re: Remove Timestamp

FLOOR(<datefield>) AS Date

You can format that field, in the UI, to MM/DD/YYYY.  Or whatever format you need.

2 Replies
marmentrout5
Contributor

Re: Remove Timestamp

FLOOR(<datefield>) AS Date

You can format that field, in the UI, to MM/DD/YYYY.  Or whatever format you need.

asmithbi
Contributor II

Re: Remove Timestamp

Thank you Michael!