# This example would create two date objects, one on the 28th of May,
# and one on the 22nd of April, both in 2018. Because the second date is
# before the first date, a negative number will be returned.
first = system.date.getDate(2018, 4, 28)
second = system.date.getDate(2018, 3, 22)
print system.date.daysBetween(first, second) #This will print -36