Hi,
I started learning Java a year ago. Before then I had written a Visual Basic Program that maintains student information.
I now want to write the same program in Java. But I do not know how to convert user input to Date. For example the user will have to type in the student's birthDate, yearOfGraduatio n, etc?
I have read some tutorials but couldn't figure out anything as there were no relevant examples.
Suppose a user types 2/9/ 2006, how do my program display the date as 02/09/2006? The two stands for day, the 9 stands for month.
Thank you for helping me.
Akinyemi
I started learning Java a year ago. Before then I had written a Visual Basic Program that maintains student information.
I now want to write the same program in Java. But I do not know how to convert user input to Date. For example the user will have to type in the student's birthDate, yearOfGraduatio n, etc?
I have read some tutorials but couldn't figure out anything as there were no relevant examples.
Suppose a user types 2/9/ 2006, how do my program display the date as 02/09/2006? The two stands for day, the 9 stands for month.
Thank you for helping me.
Akinyemi
Comment