diff --git a/PythonApplication1/PythonApplication1/PythonApplication1.py b/PythonApplication1/PythonApplication1/PythonApplication1.py index 86bc136..a69b3fe 100644 --- a/PythonApplication1/PythonApplication1/PythonApplication1.py +++ b/PythonApplication1/PythonApplication1/PythonApplication1.py @@ -1,19 +1,19 @@ import datetime currentDate = datetime.datetime.today() -#print(currentDate.minute) -#print(currentDate) -#print(currentDate.month) -#print(currentDate.year) +print(currentDate.minute) +print(currentDate) +print(currentDate.month) +print(currentDate.year) -#print(currentDate.strftime('%d %b, %Y')) -#print(currentDate.strftime('%d %b %y')) +print(currentDate.strftime('%d %b, %Y')) +print(currentDate.strftime('%d %b %y')) +userInput = input('Please enter your birth date (mm/dd/yyyy)') +birthday = datetime.datetime.strptime(userInput, '%m/%d/%Y').date() +print(birthday) +days = birthday - currentDate +print("calculation is underprocess") -#userInput = input('Please enter your birthday (mm/dd/yyyy)') -#birthday = datetime.datetime.strptime(userInput, '%m/%d/%Y').date() -#print(birthday) - -#days = birthday - currentDate -#print(days.days) \ No newline at end of file +print(days.days)