TolliumUser::FormatDate (open)
Format a given UTC date according to the user's preferences
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
STRING FUNCTION FormatDate(DATETIME value, BOOLEAN stored_utc, BOOLEAN shortformat)Parameters
DATETIME valueThe date to format
BOOLEAN stored_utcTrue if date is stored in UTC and should be converted to the user's local time
BOOLEAN shortformatTrue for the short date format (numerical month instead of month name)
Return value
STRINGThe formatted date
Description
First, the given DATETIME value is converted to the user's local date and time, then it is formatted using the user's dateformat setting.