I want to get the number of days from two dates; the first being stored in an array in a function then use the number of days for some arithmetics, but I get invalid syntax and NameError "not defined" elsewhere. What am I doing wrong?
def registration():
global reg_date, names, numbers, airtime, registration_details
reg_date = datetime.date.today()
names = raw_input("Names ")
numbers = raw_input("Numbers ")
airtime = int(raw_input("Enter Airtime: "))
registration_details = [reg_date, names, numbers, airtime] # Store Registration Details
def status():
global registration_details
current_date = datetime.date.today() # the current date may be x days since registration
reg_date = registration_details[0] # the date of registration stored in the array during registration
days_since_registration = current_date – reg_date
print days_since_registration.days
registration()