wwUtils::HumanizedDate

Prints out a string based relative date value such as just now or 10 minutes ago or 10 days ago or a month ago. Anything over a year prints a short date in the format May 1, 2015.

o.HumanizedDate(ltDate)

Parameters

ltDate
A date or time value that is converted to string.

Example

? HumanizedDate(DateTime())         && just now
? HumanizedDate(DATETIME() - 1000)  && 16 minutes ago
? HumanizedDate(DATE()-90)          && 3 months ago
? HumanizedDate(DATE()-365)         && April 10, 2016

See also:

Class wwUtils

© West Wind Technologies, 1996-2018 • Updated: 04/03/16
Comment or report problem with topic