Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change the date time format to date for the given format?

Hi

I have a  date in format as '2015-03-02T00:47:34'  i want this to be changed to date format only. Please help.

1 Solution

Accepted Solutions
arulsettu
Master III
Master III

try like this

DATE(Left('2015-03-02T00:47:34',10),'YYYY/MM/DD')

View solution in original post

7 Replies
arulsettu
Master III
Master III

try like this

DATE(Left('2015-03-02T00:47:34',10),'YYYY/MM/DD')

Kushal_Chawda

date(DATE#(Left(trim(Date),10),'YYYY-MM-DD'),'DD-MMM-YYYY')

HirisH_V7
Master
Master

Hi,

😧

LOAD * INLINE [

    Date

    "2015-03-02T00:47:34"

];

D2:

LOAD

SubField(Date,'T',1) As SDate

Resident D;

DROP table D;

D3:

load

Date(SDate,'DD-MM-YYYY') as  Finaldate

Resident D2;

Drop table D2;

Please check the attachment.

!

Hope this helps,

Regards,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
MarcoWedel

another one:

Date(Date#(Subfield('2015-03-02T00:47:34','T',1),'YYYY-MM-DD'))

to convert to your default DateFormat.

hope this helps

regards

Marco

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Date(Date#(Left(Date, 10),'YYYY-MM-DD'))


Hope this helps you.


Regards,

Jagan.

Not applicable
Author

Thank you guys all the given answers are working:)

Not applicable
Author

Hi,

DATE(Left('date',10),'YYYY/MM/DD')