The util object
The util object provides utility data and functions.
-
currentTime
Returns the current date and time -
randomPassword
Returns a new random password
currentTime
Returns the current date and time.
Syntax:
currentTime → date
Returns:
The current date and time.
Example:
This code outputs the current date and time:
<p>The current date and time is ${liquidsite.util.currentTime}.</p>
Which will output something like:
The current date and time is 12-02-2005 12:30:00.
randomPassword
Returns a new random password. The generated password can be used for various types of authentication.
Syntax:
randomPassword → string
Returns:
The new random password string.
Example:
This code outputs a new random password:
<p>Suggested password: ${liquidsite.util.randomPassword}</p>
Which will output something like:
Suggested password: niDsRG3t
