date

Description

Allows a date to be specified in different formats.

Dates can also be specified directly as a value without the need for this type but must be a fixed format currently fixed at dd-MMM-yyyy.

For more information on format see http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html.

Properties

NameDescriptionRequired
date A date in text in the format specified by format. Yes.
timeZone The time zone the date is for. No.

Example

 <sequential>
   <variables id="vars">
     <date name="xmas" format="dd/MM/yy" date="25/12/05"/>
   </variables>
   <echo text="Christmas will start at ${vars.xmas}"/>
 </sequential>


(c) Rob Gordon 2005