Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
farheenayesha
Creator
Creator

How to convert timestamp to date

Hi,

     I have a field called 'Created Date' which is in timestamp and i want to convert its values to date.

     I want to convert from timestamp(01-02-2013 13:50:47) to date(2013-01-02).

Please help me to achieve it.

1 Solution

Accepted Solutions
Not applicable

Try this,

date(Timestamp#('01-02-2013 13:50:47','MM-DD-YYYY hh:mm:ss'),'YYYY-MM-DD')

Thanks,

Prabhu

View solution in original post

7 Replies
PrashantSangle

Hi,

Try this ,

Date(Floor(dateFieldName),'YYYY-MM-DD')

OR

Date(dateFieldName,'YYYY-MM-DD')

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
tresesco
MVP
MVP

Try like:

Load

          Date(Floor([Created Date]) , 'YYYY-DD-MM') as Date

Not applicable

Try this,

date(Timestamp#('01-02-2013 13:50:47','MM-DD-YYYY hh:mm:ss'),'YYYY-MM-DD')

Thanks,

Prabhu

MK_QSL
MVP
MVP

=Date(Timestamp#([Created Date], 'DD-MM-YYYY hh:mm:ss'),'YYYY-DD-MM')

jsingh71
Partner - Specialist
Partner - Specialist

Hi Ayesha,

Try This

 

Date(Date#(SubField('01-02-2013 13:50:47',' '),'MM-DD-YYYY'),'YYYY-MM-DD')

mangalsk
Creator III
Creator III

Hi,

Kindly find the attachment.

Hope it works for you

farheenayesha
Creator
Creator
Author

Thanks everyone for helping me.