Hello again,

I'm made some minor changes and removed the System.out.println.

o removed extraneous printlns
o add Date subtraction (vDate1 - vDate2 = number of days).
o converting a Date to a Number gives number of seconds (it gave
milliseconds before).
o set the SimpleDateFormat to be MM/dd/yyyy for display.

Note, that the date subtraction is really (vDate1.toNumber() -
vDate2.toNumber) / 86400 [number of seconds in a day].

This is a patch to Velocity 1.2.

Regards,

Will Hartung
([EMAIL PROTECTED])

Attachment: patch.out
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to