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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date from timestamp in string format

how to fetch date from timestamp in string format

PFA for the same

6 Replies
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

You can write Date(Your_Field, 'MM/DD/YYYY')

MayilVahanan

Hi

Try like this

Date(Date#(FieldName, 'MM-DD-YYYY HH:mm'),'MM-DD-YYYY')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
tresesco
MVP
MVP

Date(Floor(Date#(Field, 'DD-MM-YYYY hh:mm'))) as Date

qlikmsg4u
Specialist
Specialist

Use this in script

Date(Floor(Timestamp#(YourDateField,'MM-DD-YYYY hh:mm')),'MMM-DD-YYYY') as Date

Ex Output: Nov-03-2000

dionverbeke
Partner - Creator III
Partner - Creator III

Hi,

If you wrap a date around a timestamp you can have duplicate dates in a listbox.

It is best practices to split the datetimestamp in two fields:

date(subfield(timestamp,' ',1))  as date_timestamp

and time(subfield(timestamp,' ',2)) as time_timestamp

Kind Regards,

Dion

maxgro
MVP
MVP

LOAD

  @1 as Source,

  Floor(Date#(@1,'MM-DD-YYYY hh:mm')) as DateNum,

  Date(Floor(Date#(@1,'MM-DD-YYYY hh:mm'))) as Date,

  Frac(Date#(@1,'MM-DD-YYYY hh:mm')) as TimeNum,

  Time(Frac(Date#(@1,'MM-DD-YYYY hh:mm'))) as Time

FROM

timestamp.xls

(biff, no labels, table is Sheet1$);

1.png