Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to read a timestamp from a csv file

Hi,

I am new to the Qlikview world.

I have a date field named Timestamp to import into Qlikview from a CSV file.

The field format is: YYYYMMDDhhmmss (20160816121046 for 16th of August 2016 at 12:10:46).

I would like to have it as a date with format DD/MM/YYYY.

Thanks in advance for helping me.

1 Solution

Accepted Solutions
ramasaisaksoft

YYYYMMDDhhmmss (20160816121046 for 16th of August 2016 at 12:10:46).


Date(Date#(FieldName,'YYYYMMDD HH:MM:SS'),'YYYYMMDD HH:MM:SS')


EX:-=Date(Date#('16JAN2014','DDMMMYYY'))

The below link will help to you full understand on Date functions in Qlikview.

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/d...

View solution in original post

7 Replies
marcus_sommer

Try this:

date(floor(timestamp#(20160816121046, 'YYYYMMDDhhmmss')), 'DD/MM/YYYY')

- Marcus

vardhancse
Specialist III
Specialist III

Try to do the format change in csv only.

If not in QV you can mention as

Date(TimestampField,'DD/MM/YYYY')

hector_munoz
Specialist
Specialist

Hi Idriss,

Try the following:

Date(Timestamp#(date_hour_field, 'YYYYMMDDhhmmss'), 'DD/MM/YYYY')

Regards,

H

ramasaisaksoft

YYYYMMDDhhmmss (20160816121046 for 16th of August 2016 at 12:10:46).


Date(Date#(FieldName,'YYYYMMDD HH:MM:SS'),'YYYYMMDD HH:MM:SS')


EX:-=Date(Date#('16JAN2014','DDMMMYYY'))

The below link will help to you full understand on Date functions in Qlikview.

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/d...

Anonymous
Not applicable
Author

Hi,

Try, date(date#(left(DATA,8),'YYYYMMDD'),'DD/MM/YYYY')

Best regards,

Cosmina

Not applicable
Author

Thanks a lot for all the prompt support; most solutions are working.

I am using Rama's one.

Thank you again.

Not applicable
Author

Hi,

Thank you; yours is also working...

Best regards

Idriss