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

problem with timestamp

Hi,

I am trying to convert time stamp into date, but i am not able to convert it.

I tried it =

date([Time Full Date],'DD/MM/YYYY') and the expression is ok,but in list box it is displaying nothing. Not only in listbox in all reports the same problem.

Pls help me on this.

Regards,

kumar

20 Replies
Ralf-Narfeldt
Employee
Employee

And if you do a Num([Time Full Date])?

Not applicable
Author

try like this:

=Date(Floor(Timestamp#(FieldName, 'YYYY-DD-MM hh:mm:ss')),'YYYY-MM-DD')

Not applicable
Author

Hi Kumar,

try like this....

Floor(TimeStamp) As date

or

Date(floor(MyTimestamp)) as MynewDate


or


Date(Floor(Timestamp#(FieldName, 'YYYY-DD-MM hh:mm:ss')),'YYYY-MM-DD') as Date

Anonymous
Not applicable
Author

No, it is not working.

Anonymous
Not applicable
Author

No, it is not working.

Not applicable
Author

can you please add the file with Data then we can help you better.

Anonymous
Not applicable
Author

hi

Load a more column in your script

like

Date(floor(Num(FieldName))) as Date

then use it in list box. Hope this will help

Thanks

BKC

Not applicable
Author

Hey Kumar,

ping us current time stamp format and  expected date format.

Ralf-Narfeldt
Employee
Employee

This should work:

date(timestamp#([Time Full Date],'YYYY/MM/DD h:mm:ss'),'DD/MM/YYYY')

PrashantSangle

Hi,

2 ways to acheive it

1)subfield([Time Full Date],' ',1)

2) date(timestamp#([Time Full Date],'YYYY-MM-DD hh:mm:ss'),'DD/MM/YYYY')

or

timestamp(timestamp#([Time Full Date],'YYYY-MM-DD hh:mm:ss'),'DD/MM/YYYY')

or

date(date#([Time Full Date],'YYYY-MM-DD hh:mm:ss'),'DD/MM/YYYY')

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 🙂