getting and setting dates with Java -


first off thank taking time scroll through this.

i greenhorn when comes java working on program asks user basic info sets start date , schedules service dates @ bi weekly intervals between march , october start date.

for start date variable, set as:

startdate = getdate(); 

to give current date when user signs up.

i have been sifting through searches days cannot figure out how increment service dates 14 days save life.

i tried using servicedate = startdate + (0, 14, 0); cant make sense of whats happening here. ideas?

use common-lang library. has dateutils class can used this. use this:

servicedate = dateutils.adddays(startdate, 14); 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -