Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

"Created Date" how to add as a field

Hi

How do I add "Date Created" of a file as a field in Qlikview. 

Kind regards

Nayan

Created Date.JPG

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Qlikview's FileTime() function gets the last modified date. I don't know of a simple way to get the created date.

Maybe running a DIR with the correct options to a file in a batch and then reading the file?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Thank you Jonathan for your reply.   By the way, what do you mean by DIR?

Kind regards

Nayan

devarasu07
Master II
Master II

Hi,

DIR means Directory.

simply u can add new column in your load script like below example

load *,

filetime() As Datecreate

from excelData.xls;


FileTime - script function ‒ QlikView


Thanks,Deva

jonathandienst
Partner - Champion III
Partner - Champion III

Windows batch command DIR which fetches the filename and properties (batch version of \what you see in Windows Explorer).

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

FileTime() is not the created date, but last modified date. From the link you posted:

The FileTime function returns a timestamp for the date and time of the last modification of the file filename.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein