Formatting tool for inserting into the Velocity WebContext. Can format dates or lists of objects.

Here's an example of some uses:

 $formatter.formatShortDate($object.Date) $formatter.formatLongDate($db.getRecord(232).getDate()) $formatter.formatArray($array) $formatter.limitLen(30, $object.Description) 

 /// <summary> Constructor takes an array of Strings.
 /// *
 /// </summary>
 /// <param name="alternates">A String[].
 ///
 /// </param>
 public VelocityAutoAlternator(VelocityFormatter enclosingInstance, String[] alternates) : base(enclosingInstance, alternates)
 {
     InitBlock(enclosingInstance);
 }
 private void InitBlock(VelocityFormatter enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
 /// <summary> Constructor takes an array of Strings.
 /// *
 /// </summary>
 /// <param name="alternates">A String[].
 ///
 /// </param>
 public VelocityAlternator(VelocityFormatter enclosingInstance, String[] alternates)
 {
     InitBlock(enclosingInstance);
     this.alternates = alternates;
 }
	    /// <summary> Constructor takes an array of Strings.
	    /// *
	    /// </summary>
	    /// <param name="alternates">A String[].
	    ///
	    /// </param>
	    public VelocityAutoAlternator(VelocityFormatter enclosingInstance, System.String[] alternates):base(enclosingInstance, alternates) {
		InitBlock(enclosingInstance);
	    }
	    private void  InitBlock(VelocityFormatter enclosingInstance) {
		this.enclosingInstance = enclosingInstance;
	    }
	    /// <summary> Constructor takes an array of Strings.
	    /// *
	    /// </summary>
	    /// <param name="alternates">A String[].
	    ///
	    /// </param>
	    public VelocityAlternator(VelocityFormatter enclosingInstance, System.String[] alternates) {
		InitBlock(enclosingInstance);
		this.alternates = alternates;
	    }