I have 100s of files in a directory that are all in the same format like this:
Recon-2024Jun03.xlsx
Recon-2024Jun02.xlsx
Recon-2024Jun01.xlsx
etc...
I need to rename them all with a new format like this:
Recon-240603.xlsx
Recon-240602.xlsx
Recon-240601.xlsx
etc...
I have this piece of code, but I am unsure what to put inside the replace function:
import os
[os.rename(f, f.replace('.', '.')) for f in os.listdir(path)]
here is the date format I need
'%y%m%d'