Forum Post: Adding a duration to a date to give a new date

  • Thread starter Thread starter herveyq
  • Start date Start date
Status
Not open for further replies.
H

herveyq

Guest
Hi, still getting my head around Java and RB. Seems to be a lot of ways to do the one thing. I would like to use RB to generate Java code to give me a new date from a known date and a duration. What I tried is: Original Formula {!return_DT} = {!startDate} + {!duration} Parsed Formula 001 Fri Oct 10 2014 16:00:00 (EST) = Tue Nov 25 2014 19:44:00 (EST) + 23400000 Formula return type: Date/Time (Adjust to user time zone) Error Error missing ; before statement (line #1) in formula: Fri Oct 10 2014 16:00:00 (EST) = Tue Nov 25 2014 19:44:00 (EST) + 23400000 Any help most gratefully accepted.

Continue reading...
 
Status
Not open for further replies.
Back
Top