Answer to Question #288507 in Python for Venu

Question #288507

Date Format





Write a program to convert the date from =dd-mm* yy^ prime prime format to "dd/mm/yy^ prime prime format.

1
Expert's answer
2022-01-18T14:07:17-0500
dd=0
while(dd<=0 or dd>31):
    dd = int(input("Enter Date (1-31): "))
mm=0
while(mm<=0 or mm>12):
    mm = int(input("Enter Month (-12): "))


yy = int(input("Enter Year (YYYY): "))


print("\nInput Date   : DD/MM/YYYY: %d / %d / %d"%(dd,mm,yy))
print("\nModified Date: MM/DD/YYYY: %d / %d / %d"%(mm,dd,yy))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS