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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date issue

Hi,

I have an issue with date.

I am trying to convert date value YYYYMMDD to DD/MM/YYYY. But it is not giving any result with the below expressions.

=Date(Floor(TimeStamp#(site_visit_start_datetime_key, 'DD/MM/YYYY hh:mm:ss')))

=Date(Floor(TimeStamp#(site_visit_start_datetime_key, 'DD/MM/YYYY')))

Any suggestions on this

Regards,

Kumar

13 Replies
sunny_talwar

May be this:

Date(Floor(TimeStamp#(site_visit_start_datetime_key, 'YYYYMMDD hh:mm:ss')), 'DD/MM/YYYY')

Anonymous
Not applicable
Author

Thanks sunny for your reply. But no use

arulsettu
Master III
Master III

post some sample file

sunny_talwar

Can you share the current format of site_visit_start_datetime_key field?

Anonymous
Not applicable
Author

Pls find the screen shot.

sunny_talwar

This looks like a datefield and not timestamp. May be this:


Date(Date#(site_visit_start_datetime_key, 'YYYYMMDD'), 'DD/MM/YYYY')

Kushal_Chawda

try this

Date(Date#(site_visit_start_datetime_key, 'YYYYMMDD'), 'DD/MM/YYYY')

Anonymous
Not applicable
Author

Thanks Sunny. It is working fine.

Being new to this Qlikview. Can you tell me, Is there any way to find out whether date field is date or not.

bohravanraj
Partner - Creator II
Partner - Creator II

=Date(Date#(site_visit_start_datetime_key,'YYYYDDMM'),'DD/MM/YYYY')