Python Modification Date Help

151
0
12-24-2019 08:49 AM
SamLee1
New Contributor

Hello All,

I need help getting the modification date for an old/archived excel file that gets push to an archived folder when a a new file enters in. The modification date gets attached to the file name of the old file that is in the archived folder.

I tried various ways through this links, but none of them seem to work:

How to get file creation & modification date/times in Python? - Stack Overflow 

How to get file creation & modification date/times in Python? - Stack Overflow 

python - Compare last modification time with specfied time - Code Review Stack Exchange 

https://intellipaat.com/community/3770/how-to-get-file-creation-modification-date-times-in-python 

https://www.w3resource.com/python-exercises/python-basic-exercise-64.php 

I have attached my Python code below for reference and review. Right now it just gets the current date of when it got move and not the modification date.

0 Kudos
0 Replies