Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get date from integer format

HI

1308731652

1283938205

is the data in the date feild,

I wanted to convert to datetime.

Thanks in Adv,

Venkatesh

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

This looks like UNIX time to me, i.e. the number of seconds elapsed since midnight Thursday, January 1, 1970, UTC.

If it is, you could convert this number to a QlikView date by using
Date(MakeDate(1970,01,01) + YourDate / 24 / 60 / 60)

View solution in original post

4 Replies
vijay_iitkgp
Partner - Specialist
Partner - Specialist

Hi,

Ii does not looks correct numeric date . correct date should be 5 digit number or 5 digit number with decimal .

Not applicable
Author

Hi Venkatesh,

I Agree with Vijay.As per my understanding, the value which u have provided is incorrect value. I've attached one sample application with value which is showing the correct date and time by using timestamp and date function. please go-through the attachment file. Forgive me if i couldn't understood properly r if u find any mistakes in my reply.

Warm Regards,

Arun Prasadh.N.

Not applicable
Author

First convert this integer date field in correct data field like 5 digit  number and then apply DATE#,DATE FUNCTION to get a final date field.FLOOR IS another option available to filter it.

Regards,

Dushyant

hic
Former Employee
Former Employee

This looks like UNIX time to me, i.e. the number of seconds elapsed since midnight Thursday, January 1, 1970, UTC.

If it is, you could convert this number to a QlikView date by using
Date(MakeDate(1970,01,01) + YourDate / 24 / 60 / 60)