AnsweredAssumed Answered

Python date wild card

Question asked by louchios on Aug 12, 2019
Latest reply on Aug 12, 2019 by bixb0012

Hi I have the following code that works correctly. However, every once in a while there is a file name that has an "06" instead of an "05" and it breaks the script. Is there a way I can use a wild card for that digit?


        fileName = os.path.split(fullFileName)[-1]
        fileNameShort = fileName[:-13]
        fileDateTime = dt.strptime(fileName, "")