Clarity

  • 1.  Difference between 2 dates

    Posted Jan 07, 2016 06:56 AM

    Hi All, How to get Difference of two dates in Gel Script

    where in Java we can Achieve it through using

    `int days = Days.daysBetween(date1, date2).getDays();`

     

    Could you please help me out in applying this Logic in Gel-Script

    Thanks All.



  • 2.  Re: Difference between 2 dates

    Posted Jan 11, 2016 07:19 PM

    Can you do it in SQL? (i.e. what is the source of those dates, if from the dbms then it is a simple calculation in SQL)

    Note be careful with duration calculations as you may need to add 1, but sometimes you don't depending on how the data has been stored.