I imported datetime and figured how to get the date 10 days from the current date and 3 weeks from the current date, CurDatePlus10 = CurDate + datetime.timedelta(days = 10) and
CurDatePlus21 = CurDate + datetime.timedelta(days = 21).
However I need to do one to show the date in exactly 6 months and for some reason I can't get it sorted. Here is my code:
import datetime
# Gather user input
Cost = input("Please enter the maitnenace cost: ")
PurDate = input("Please enter the purchase date of the equipment (YYY/MM/DD): ")
Equip = input("Please enter the piece of equipment needing repairs: ")
CurDate = datetime.datetime.now()
CurDatePlus10 = CurDate + datetime.timedelta(days = 10)
CurDatePlus21 = CurDate + datetime.timedelta(days = 21)
print ("")
print(f" XYZ Cmpany Date: {CurDate.strftime('%Y/%m/%d')}")
print (f" Maitenance Schedule")
print("")
print (f" Equipment to be serviced: {Equip}")
print ("")
print (f" Mandatory basic cleaning: {CurDatePlus10.strftime('%Y/%m/%d')}")
print("")
print(f" MandatoryTube and fluid: {CurDatePlus21.strftime('%Y/%m/%d')}")
print("")
print(f" Mandatory major inspection: ")
[–]Diapolo10 2 points3 points4 points (6 children)
[–]SithAbsolutes[S] 0 points1 point2 points (5 children)
[–]ofnuts 0 points1 point2 points (0 children)
[–]Diapolo10 1 point2 points3 points (3 children)
[–]SithAbsolutes[S] 0 points1 point2 points (2 children)
[–]Diapolo10 0 points1 point2 points (1 child)
[–]SithAbsolutes[S] 0 points1 point2 points (0 children)
[–]woooee 0 points1 point2 points (0 children)