Source Code:
(back to article)
from datetime import datetime # aktuelles datum now = datetime.now() # datum formatieren als JJJJ-MM-TT date_string = now.strftime("%Y-%m-%d") print(date_string)
Result:
Report an issue