<reponame>wachira90/python-all<gh_stars>0
#!D:\python37\python.exe
#-*- coding: UTF-8 -*-

from datetime import date
today = date.today()
# dd/mm/YY
d1 = today.strftime("%d-%m-%Y")
print("d1 =", d1)
x1 = today.strftime('%Y-%m-%d')
print("x1 =", x1)
# Textual month, day and year	
d2 = today.strftime("%B %d, %Y")
print("d2 =", d2)
# mm/dd/y
d3 = today.strftime("%m/%d/%y")
print("d3 =", d3)
# Month abbreviation, day and year	
d4 = today.strftime("%b-%d-%Y")
print("d4 =", d4)
#!D:\python37\python.exe
#-*- coding: UTF-8 -*-

from datetime import date
today = date.today()
# dd/mm/YY
d1 = today.strftime("%d-%m-%Y")
print("d1 =", d1)
x1 = today.strftime('%Y-%m-%d')
print("x1 =", x1)
# Textual month, day and year	
d2 = today.strftime("%B %d, %Y")
print("d2 =", d2)
# mm/dd/y
d3 = today.strftime("%m/%d/%y")
print("d3 =", d3)
# Month abbreviation, day and year	
d4 = today.strftime("%b-%d-%Y")
print("d4 =", d4)
#!D:\python37\python.exe #-*- coding: UTF-8 -*- # dd/mm/YY # Textual month, day and year # mm/dd/y # Month abbreviation, day and year