Home > Contents > Index > 
SETDATE
Sets or clears the Content Server 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, setDATEto blank using an escaped value:
<SETDATE DATE="%20"/>Description
The
SETDATEtag sets or clears the Content Server 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.errno
The possible values of
errnoinclude:
 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 > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.