I\'m trying to get the datestamp on the file in mm/dd/yyyy format
time.ctime(os.path.getmtime(file))
gives me detailed time stamp Fri Jun
Fri Jun
from datetime import datetime from os.path import getmtime datetime.fromtimestamp(getmtime(file)).strftime('%m/%d/%Y')