Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

date format

Hello Guys,

I hope all is well.

I have a date field with that format

 

valid_from

12/08/2015 00:00

I did the expression bellow in the script to extract only the date  DD/MM/YYYY

Date(Date#(valid_from, 'DD/MM/YYYY'), 'DD/MM/YYYY') AS detection_date  but it returns nothing

do you have any idea please?

Thanks

5 Replies
MK_QSL
MVP
MVP

Date(Floor(TimeStamp#(valid_from, DD/MM/YYYY hh:mm'))) as detection_date

or

Date(Floor(TimeStamp#(valid_from, DD/MM/YYYY hh:mm')),'DD/MM/YYYY') as detection_date

Not applicable

Hey Wiem,

In your original string, the date and time is formatted like 'DD/MM/YYYY hh:mm'

You need to make sure that in the Date#(valid_from, 'DD/MM/YYYY') function the date itself is formatted as how it is

in the original string so:

Date(Date#(valid_from, 'DD/MM/YYYY hh:mm'), 'DD/MM/YYYY') AS detection_date


Good luck!


Ivo

master_student
Creator III
Creator III
Author

Thanks but it didn't work.

vishsaggi
Champion III
Champion III

Can you share your script or a sample app to look into?

qlikview979
Specialist
Specialist

Hi,

I hope this is helpful to you

   Floor(valid_from)   as valid_from

Regards,

Mahesh