DEV Community

Basha
Basha

Posted on

How to get the date created of a file in python?

You can easily get it by this following code

import os
print("Date created" + time.ctime(os.path.getctime(file_dr)))
Enter fullscreen mode Exit fullscreen mode

Top comments (0)