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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Timestamp format

Hi everyone,

      As I am stuck while converting a field into timestamp format. My sample Data looks like below  and I have attached the sample excel file.

1/17/2017   8:28:11AM

Expected output = 'DD-MM-YYYY hh:mm:ss'.

Thanks in advance.

7 Replies
Anonymous
Not applicable

=date(date#('1/17/2017   8:28:11AM','M/DD/YYYY   h:mm:sstt') , 'DD-MM-YYYY hh:mm:ss' )

tresesco
MVP
MVP

Try like:

=TimeStamp(Timestamp#('1/17/2017   8:28:11AM', 'MM/DD/YYYY   h:mm:ssTT'),'DD-MM-YYYY hh:mm:ss')

nareshthavidishetty
Creator III
Creator III
Author

Hi,

     Ya its working fine if we use that in front end.

But the problem is if I load that Excel file and then use that in script its not working.

Could u please load the Excel file which I have attached and convert that field to Timestamp.

Thanks

tresesco
MVP
MVP

I don't find any excel attached.

nareshthavidishetty
Creator III
Creator III
Author

Sorry for that.

Please find the attachment.

tresesco
MVP
MVP

Try:

TimeStamp(Timestamp#([Email Sent Date], 'MM/DD/YYYY   h:mm:ssTT'),'DD-MM-YYYY hh:mm:ss') as NewDate

Anonymous
Not applicable

In addition,

you will get the same result with using Date function.

Date(Date#([Email Sent Date], 'MM/DD/YYYY   h:mm:ssTT'),'DD-MM-YYYY hh:mm:ss') as NewDate