Home > Contents > Index >
SETDATE
Sets or clears the Sites date/time property.
Syntax
<SETDATE DATE="DATE
"/>Parameters
DATE (required)
- Date to set the date property to. Use the format:
yyyy-mm-dd hh:mm:ss
. To restore the date/time property to use the current system date/time, setDATE
to blank using an escaped value:
<SETDATE DATE="%20"/>Description
The
SETDATE
tag sets or clears the Sites date/time property. Date built-ins can then be used to display various date components. Clearing the date property restores the property to use the current system date/time.Error Numbers
The possible values of
errno
include:
Value Description -106 Bad date syntax.Example
This example sets the date to Feb 1 2001, displays the hour according to the date set, then restores the date property to use the current system date/time.
<SETVAR NAME="errno" VALUE="0"/> <SETDATE DATE="2001-02-01 12:24:01"/> <CSVAR NAME="CS.Hour"/> <SETDATE DATE="%20"/> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.