I want to create a new folder using the current datetime, but I get an error:
import datetime
import os
x = datetime.datetime.now()
os.mkdir(x)
Error:
Traceback (most recent call last):
File "c:\Users\sepeh\Desktop\F-1\mkdir.py", line 6, in <module>
os.mkdir(x)
TypeError: mkdir: path should be string, bytes or os.PathLike, not datetime