Page 1 of 1

How can I subtract two dates in a Parallel JOB?

Posted: Tue Jul 27, 2010 12:39 pm
by igorbmartins
How can I subtract two dates in a Parallel JOB?

Re: How can I subtract two dates in a Parallel JOB?

Posted: Tue Jul 27, 2010 12:54 pm
by nirdesh2
Use the transformer stage and Date function to substract 2 dates..

Posted: Tue Jul 27, 2010 12:56 pm
by anbu
DaysSinceFromDate() Returns the number of days from source date to the given date

Posted: Tue Jul 27, 2010 1:12 pm
by anbu
date1 and date2 are two parameters to the function

Code: Select all

DaysSinceFromDate(date2, date1)

Posted: Tue Jul 27, 2010 1:25 pm
by kris007
Depends on what you want as your output. Do you need the date or the number of days between the dates? If you are interested in Date as an output, you can convert the dates in Julian, find the difference and then convert it back to Gregorian. I have done that in the past successfully.

dayssincefromdate

Posted: Tue Jul 27, 2010 11:49 pm
by manikumar
anbu wrote:date1 and date2 are two parameters to the function

Code: Select all

DaysSinceFromDate(date2, date1)

Before answering question see once.dont give wrong answers.how to subtract dates using dayssincefromdate .once u go through the syntax