To get the current date in the given format, you can use the datetime module and the strftime() function to format the date string. Here is an example code snippet:
main.py105 chars6 lines
This will output the current date in the format DD-MM-YYYY, where DD is the day, MM is the month and YYYY is the year.
gistlibby LogSnag