Add date and timestamp to a o/p file generated in a folder

mahak_jain01
mahak_jain01 Registered Posts: 2 ✭✭✭✭
Hi Team,

We have a workflow where data from o/p table has to moved to a shared drive folder on daily basis. Requirement is to append a datetime to the end of the file name, so that it does not overrides the previous run file.

Ex- Say the file name to be created in shared folder is: Loan_Rate

so, now going forward it should be named as : Loan_Rate_2018-11-28,Loan_Rate_2018-11-29 for daily run



Can anyone please help me how to solve this with the help of python code.

I tried but its failing.



Thanks,

Mahak

Answers

Setup Info
    Tags
      Help me…