I am currently writing a discord bot, and I want to be able to print today's date as dd/mm/yyyy. I tried .strftime() and .strpdate() but I can't find out a way to incorporate .now().
import time, datetime
from datetime import datetime
@commands.command()
async def date(self, ctx):
await ctx.send(datetime.now().strpdate('%d:%m:%Y'))
This is the output:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'datetime.datetime' object has no attribute 'strpdate'