Date difference calculation in Repeating Table
Hi friends,
After searching for a while, I still not figuring out how to implement the date difference calculation within the Repeating Table.
e.g.
Date From Date To No.of Days
20/03/2007 22/03/2007 3
24/03/2007 25/03/2007 2
Any idea?
[288 byte] By [
PaulYau] at [2008-1-1]
Your code works great if you are selecting two dates from the same month.
(IE. Start 8/13/2007 - End 8/15/2007 = 2 days)
However if you select dates from two different months, you will receive an incorrect value
(IE. Start 8/13/2007 - End 9/16/2007 = 3 days)
The same occurs when you choose a different year.
Any solutions?