Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
khaycock
Creator
Creator

Date Time Stamp

I have a date/time stamp that has been given to me in this format: 2017-02-28T00:00:00+00:00


What do I need to put in the script to get rid of the time part?

So I want it to just show DD/MMM/YYYY..

1 Solution

Accepted Solutions
annafuksa1
Creator III
Creator III

you need to use this

LOAD  date(Date#(left(DueDate,10) ,'YYYY-MM-dd'))as DueDate

View solution in original post

11 Replies
Frank_Hartmann
Master II
Master II

Try that:

date(floor(Timestamp(now()))) as Timestamp

hope this helps

Anil_Babu_Samineni

From given data you are expecting this? 28/02/2017 0:00:00.

You can use this  =Timestamp('2017-02-28T00:00:00+00:00')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
khaycock
Creator
Creator
Author

I tried this in the script..

timestamp(DueDate),

and it returned a null value instead

Anil_Babu_Samineni

I tried this and it return image

LOAD Timestamp(DueDate) as DueDate Inline [

DueDate

2017-02-28T00:00:00+00:00

];

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
annafuksa1
Creator III
Creator III

try to use

date:

LOAD  date(Date#(left(DueDate,10) ,'YYYY-MM-dd'))as DueDate

Inline [

DueDate

2017-02-28T00:00:00+00:00

];

yoganantha321
Creator II
Creator II

Hi Karthryn,

I have tried with the following

date(DateEntering,'DD/MMM/YYYY') as DateEntering and got output as the below image

Capture.PNG

I think this is useful for you

khaycock
Creator
Creator
Author

It giving me a blank response date.PNG

Frank_Hartmann
Master II
Master II

date(Date#(left(DueDate,10) ,'YYYY-MM-DD'),'DD/MMM/YYYY')

CarlosAMonroy
Creator III
Creator III

Hi Kathryn,

Try this:

date(left(DateField,10),'DD/MMM/YYYY')

4-3-2017 10-56-23 AM.png

thanks,

Carlos M