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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

date format

Hi,

can any one please help me

I have date field with number format Timestamp.

VIOLATION DATE.jpg

first one is the original foramt second one is the converted format

In the Converted format i am getting the one date many times ideally its not correct.

Please help me to resolve.

I have used the below script

Date(Num(VIOLATION_DATE),'MM/DD/YYYY') as VIOLATION_DATE,

Thanks

1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try this:

Date(Floor(OLD_VIOLATION_DATE),'MM/DD/YYYY')


It will Round the number to the integer and duplicates will disappear.

View solution in original post

5 Replies
kristof_j
Creator III
Creator III

and if you use

Date(VIOLATION_DATE) as VIOLATION_DATE?

Not applicable

Do this :

Date(floor(VIOLATION_DATE)) as NewDate

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try this:

Date(Floor(OLD_VIOLATION_DATE),'MM/DD/YYYY')


It will Round the number to the integer and duplicates will disappear.

trdandamudi
Master II
Master II

May be as below:

    Date(Num(Floor(VIOLATION_DATE)),'MM/DD/YYYY') as VIOLATION_DATE

Chanty4u
MVP
MVP

its working as below

aa:

LOAD * INLINE [

    Date

    40544

40544.010416667,

4054.09375

];

LOAD *

,

    Date(Num(Floor(Date)),'MM/DD/YYYY') as VIOLATION_DATE

Resident aa;