Back
distanceOfTimeInWords()
Pass in two dates to this method, and it will return a string describing the difference between them.
// Controller code. rightNow = Now(); aWhileAgo = DateAdd("d", -30, rightNow); // View code. <!--- Will output: about 1 month ---> #distanceOfTimeInWords(aWhileAgo, rightNow)#
Copied!