How to print the date in your format import datetime now = datetime.datetime.utcnow() print(f"{now:%d/%m/%Y}") Output: 09/09/2021