logindate(X)

Returns the date of the current session's login within a given time zone.

Syntax

logindate(X)

Input

Argument Type Description
X integer A whole number between -11 and 11 (or column name containing such values), representing a time zone, where 0 represents GMT

For example:

  • -5 represents EST
  • -8 represents PST

Return Value

Returns the integer value corresponding to the date of the current session's login in the time form (YYYYMMDD) within the given time zone.

If the input values are not in one of the supported formats listed above, the function returns an erroneous or illogical output.

Example

The following example gets the login date using the logindate(X) function.

<base table="default.lonely" 
 label="Example: logindate(X)"/>
<willbe name="login_date" value="logindate(-5)" 
 label="Login Date"/>
<colord cols="login_date"/>