Chat on IRC |
Date and Calendar issues
Posted by flyfish [send private reply] at July 09, 2002, 05:42:27 PM
hi all,
I am wondering if anyone can give me a suggestion on how to take a String and convert it to a Java Date object? For example if I type in a String 7/4/2002 and I wish to conver it to July/4/2002. Also if I want to calculate on days borrowed, for example, 7/4/2002 and 7/8/200, will the method getDate() do its trick? Thanks for your time.
Posted by Psion [send private reply] at July 09, 2002, 06:47:26 PM
I don't understand your second question, but look at java.util.DateFormat for the first.
Posted by flyfish [send private reply] at July 09, 2002, 07:03:41 PM
Sorry about the confusion of the second question.
I was wondering what method will I use to find the number of days, for example, between January 01, 2000 and January 02, 2002.
Posted by mrnorman [send private reply] at July 09, 2002, 07:30:08 PM
Why not write your own. It would be a bit tedious, but not too difficult.
Register as a new user | ||||||