Hi i have a question on getting date from user input.
I have created a code so that i can get user to enter a date. How can is
get the numbers to be a string of numbers Eg. user enter 12/13/2000.
Is it possible to get the number to show in one variable num=12132000 if
yes, what is that coding like? i need the number in this format because i
need all the number to do a formular shown below.
float num = (1232234353)/3.14;
Please advice. Thank you.
here's my coding:
printf("Enter Joining Date:");
To convert a number to string of numbers use the function sprintf.
[ back to toc ]