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


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

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