Lava Filters - DateDiff

Category:Date

Description:Takes two datetimes and returns the difference in the unit you provide. You can provide the value 'Now' for either the start or end date.
Input: "Person": { "FirstVisit": "2/14/2011", "SecondVisit": "3/18/2011" }
Lava: It was {{ Person.FirstVisit | DateDiff:Person.SecondVisit,'d' }} days between {{ Person.NickName }} first and second visit.
Output: It was 32 days between Ted's first and second visit.