Skip to main content
Solved

How retrieve the cration date of Excel file (reader)


Hi,

I would like retrieve the date of a Excel file (in the reader). The date write in the Windows explorator.

I would like write this date in a field 'version' of my new file (in the writer)

Thanks a lot,

 

Best answer by dustin

You can use the Directory and File Pathnames Reader to read the file (with Retrieve file properties set to yes). The attribute you are looking for is path_created_date, which can then be copied to the field 'version'. You might also find the path_modified_date to get the latest date.

View original
Did this help you find an answer to your question?

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • April 6, 2022

Hi @tanmat​ 

 

The transformer DateTimeStamper can generate this information.

 

 

Thanks in Advance,

Danilo


dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • Best Answer
  • April 6, 2022

You can use the Directory and File Pathnames Reader to read the file (with Retrieve file properties set to yes). The attribute you are looking for is path_created_date, which can then be copied to the field 'version'. You might also find the path_modified_date to get the latest date.


  • Author
  • April 7, 2022
danilo_fme wrote:

Hi @tanmat​ 

 

The transformer DateTimeStamper can generate this information.

 

 

Thanks in Advance,

Danilo

Hi Danilo,

Thanks for your answer, but I think that the transformer DateTimeStamper give only the date of the day when you run your workbench. But I don't think is it possible to retrieve with this transformer the date of the file.


  • Author
  • April 7, 2022
dustin wrote:

You can use the Directory and File Pathnames Reader to read the file (with Retrieve file properties set to yes). The attribute you are looking for is path_created_date, which can then be copied to the field 'version'. You might also find the path_modified_date to get the latest date.

Hi,

Thanks a lot, I used the transformer 'FilePropertyExtractor' and then I retrieve the field '_file_mtime'.

It's exactly that I want, thanks


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings