I want to add one day to the date given as argument for a python script
I mean a date will be passed as follows while calling the script python -d mm/dd/yyyy code:
parser = argparse.ArgumentParser(description='XYZ')
parser.add_argument("-d","--date",required=True,dest="help", help="help")
I want to add one day to given day I'm trying this :
check_date = args.date
check_pass_date =datetime.check_date + datetime.timedelta(days=1)
this check_pass_date I later want to use as argument for function
I'm getting following error for this:
type object 'datetime.datetime' has no attribute 'check_date'
Is this reg the importing of module or what? How can I add one day to given date?
question from:https://stackoverflow.com/questions/65933477/how-to-add-1-day-to-given-date-in-python