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 value
The date to format
BOOLEAN stored_utc
True if date is stored in UTC and should be converted to the user's local time
BOOLEAN shortformat
True for the short date format (numerical month instead of month name)
Return value
STRING
The 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.