Hey I'm Workin on a program that calculates age. My Problem is that I need to access the computer time and somehow compare it to the birthdate input. I tryed to use ctime, but it doesnt work the way i need it to.
ex:
the user inputs a b-date: 08/23/1943
the program has to calculate the date using the computers time. ctime gives me Wed Oct 29 21:03:27 2003. is there a way to convert 08/23/1943 to the ctime format? or the opposite? if anyone can help me that would be greatly appriciated.
MrSmiley
p.s. im not asking for the program i am making it, i just need help on using the computers time
ex:
the user inputs a b-date: 08/23/1943
the program has to calculate the date using the computers time. ctime gives me Wed Oct 29 21:03:27 2003. is there a way to convert 08/23/1943 to the ctime format? or the opposite? if anyone can help me that would be greatly appriciated.
MrSmiley
p.s. im not asking for the program i am making it, i just need help on using the computers time