getting and setting dates with Java -
this question has answer here:
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
Post a Comment