Your code looks like it's running fine to me. Would you be able to edit your post and put tags around the code? It's hard to read. I also don't know what exactly you want. It's definitely taking the input how you want it. Perhaps just ask the user to put it in the format dd/mm/yy?
Sorry I forgot to add the tags.
The code I have provided does run however I now need to format the date and time so when a user enters the value as text it is converted into the format yyyy/mm/dd and hh:mm. Another problem I have at the minute is when more than 1 event is added and saved to file, when it is loaded each event is displayed all on one line and the separate events need to be on separate lines with the 6 field titles (date, time, title, description, location, attendees) displayed also. (I hope this makes sense)
Here is my code, hope it's now clearer:
import cPickle
def print_menu():
print '1. Add an Event'
print '2. Save Events to File'
print '3. Load Events from File'
print '4. Quit'
print
event_list = []
menu_choice = 0
print_menu()
while True:
menu_choice = input("Select Menu Item (1-4): ")
if menu_choice == 1:
print "Add Event"
date = input("Date: ")
time = raw_input("Time: ")
title = raw_input("Title: ")
desc = raw_input("Description: ")
loc = raw_input("Location: ")
attend = raw_input("Attendee(s): ")
ui = "Date: " + date, "Time: " + time, "Title: " + title, "Description: " + desc, "Location: " + loc, "Attendee(s): " + attend
event_list.append(ui)
elif menu_choice == 2:
filename = raw_input("Filename to save: ")
pickle_file = open(filename, "w")
cPickle.dump(event_list, pickle_file)
pickle_file.close()
elif menu_choice == 3:
filename = raw_input("Filename to load: ")
pickle_file = open(filename, "r")
events = cPickle.load(pickle_file)
pickle_file.close()
print "Events:", events
elif menu_choice == 4:
break
else:
print_menu()
print "Goodbye"