Date format: Difference between revisions

m
→‎{{header|Python}}: Update second example to conform with new requirements
(→‎{{header|Python}}: Update second example to conform with new requirements)
m (→‎{{header|Python}}: Update second example to conform with new requirements)
Line 2,720:
<lang python>import datetime
today = datetime.date.today()
# The first reequestedrequested format is a method of datetime objects:
print today.isoformat()
# For full flexibility, use the formatting codes fro the link above:
print today.strftime("%A, %B %d, %Y")
</lang>
Anonymous user