$WBDCALC - calculate date

Availability
$WBDCALC is available for use with all WBSP commands.

Syntax
$WBDCALC{startdate|offset|interval|operator}
$WBDCALC[startdate|offset|interval|operator]

Parameters
startdate  - starting date/time value
offset - number of intervals to be added to or subtracted from startdate
interval -  interval of time to be added to or subtracted from startdate
Valid values are:
S - seconds
M - minutes
H - hours
D - days
operator - for addition set operator to + (plus sign), for subtraction set it to - (minus sign)
Returns
New date value created by adding or subtracting the offset number of intervals to/from startdate.

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>Calculate date</title>
</head>
<body>
$wbdcalc[01.03.2009|1|D|-]<br>
$wbdcalc[01.03.2009 00:00:00|3600|S|-]
</body>
</html> 

After running this example, the resulting page in browser should look like this:

28.2.2009
28.2.2009 23:00:00