[Solved] How do I print the current date without the dashes?

[ad_1]

You can use the strftime method of the date object.

>>> today = date.today()
>>> today.strftime("%d/%m/%Y")
'28/03/2022'

Here’s the documentation on the format codes you can use.

1

[ad_2]

solved How do I print the current date without the dashes?