Calendar / Date / others classes should I use ?  
Author Message
d





PostPosted: 2007-4-11 22:57:00 Top

java-programmer, Calendar / Date / others classes should I use ? If today is 20Apr2007, I would like to display the date that after 14 days
(ie. 3May2007). How can I do ? Display format can be 03/05/2007 or 3May2007.

Ringo


 
visionset





PostPosted: 2007-4-12 5:32:00 Top

java-programmer >> Calendar / Date / others classes should I use ?
"d" <a> wrote in message news:461cf73a$email***@***.com...
> If today is 20Apr2007, I would like to display the date that after 14 days
> (ie. 3May2007). How can I do ? Display format can be 03/05/2007 or
> 3May2007.
>

http://joda-time.sourceforge.net/

You may as well get used to it.
It'll probably be in JDK 1.7

--
Mike W


 
Lew





PostPosted: 2007-4-13 11:51:00 Top

java-programmer >> Calendar / Date / others classes should I use ? "d" <a> wrote ...
>> If today is 20Apr2007, I would like to display the date that after 14 days
>> (ie. 3May2007). How can I do ? Display format can be 03/05/2007 or
>> 3May2007.

<http://java.sun.com/javase/6/docs/api/java/util/Calendar.html#add(int,%20int)>

--
Lew
 
 
Roedy Green





PostPosted: 2007-4-25 19:13:00 Top

java-programmer >> Calendar / Date / others classes should I use ? On Wed, 11 Apr 2007 22:57:12 +0800, "d" <a> wrote, quoted or
indirectly quoted someone who said :

>If today is 20Apr2007, I would like to display the date that after 14 days
>(ie. 3May2007). How can I do ? Display format can be 03/05/2007 or 3May2007.

see http://mindprod.com/jgloss/calendar.html
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com