java - assign a variable to JodaTime -
java - assign a variable to JodaTime -
consider have value have set day in jodatime.
int new_day; this day have set day in jodatime. have time in jodatime object 2014-04-01t10:10:10.000+05:30. want set date 01 15 , consider value of new_day = 15;. want 15 instead of 01 , reply should coming after changing. 2014-04-15t10:10:10.000+05:30. tried , not working
start=start.plusdays(new_day); thanks
if start variable of time datetime, suspect want datetime.withdayofmonth:
start = start.withdayofmonth(new_day); other types (e.g. localdatetime) have similar methods.
(i'd advise start next java naming conventions, using camelcasing instead of underscore_separation.)
java jodatime
Comments
Post a Comment