dcsimg
Question regarding Date
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mujtaba_Ahmed
Posted On:   Tuesday, September 24, 2002 02:25 AM

I am having problems in date manipulation. I have retrieved a date from a table (mySQL) and store it in a string. (YYYY-MM-DD) and I want to add 2 more days to it and send again to another table. How can I do it? Plz tell me which class and method should I use. Thanks

Re: Question regarding Date

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, September 24, 2002 05:16 AM

Hi,

You need to parse the date string through the java.text.dateFormat class into a Calendar object, and then use the add method of it.
About | Sitemap | Contact