wwUtils::HumanizedDate

Displays a date in colloquial English text like just now, 10 minutes ago, 2 weeks ago or 3 months ago etc.

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-2024 • Updated: 03/07/19
Comment or report problem with topic