Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DateTime Format

Hi,

I'm trying to pull out the following:

load Timestamp#(max(Timestamp), 'DD/MM/YYYY hh:mm:ss')as maxTS
Resident ObsExportQVD;

However the result outs out as  42278.535208333  instead of '2015-10-02 08:10:15' for example.

I have also tried the following, and it bring outs the date in the correct format only. I need the time to come out as well.

load Date(max(Timestamp))as maxTS
Resident ObsExportQVD;

Any ideas how I can get around this?

Thank you.

5 Replies
simenkg
Specialist
Specialist

Just use

Date(max(Timestamp),'DD/MM/YYYY hh:mm:ss) as maxTS

PrashantSangle

Hi,

Use timestamp() instead of Timestamp#()

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 🙂
maxgro
MVP
MVP

if you want date use Date formatting function

load Date(max(Timestamp)) as maxTS
Resident ObsExportQVD;



if you want timestamp use the Timestamp formatting function

load Timestamp(max(Timestamp)) as maxTS Resident ObsExportQVD;

or add a format as second param in Timestamp

load Timestamp(max(Timestamp), 'the format you want') as maxTS Resident ObsExportQVD;

Not applicable
Author

Thank you, this worked.

simenkg
Specialist
Specialist

Good!

Mark the answer as correct to close the thread.