velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: I need help with date format
Date Wed, 07 Nov 2007 21:38:50 GMT
you can write a little helper tool to do it:

public MyDateTool {
  public Date format(int oracleDate) {
     //TODO: the actual conversion here
  }
}

or use this one:
http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/DateTool.html

On 11/7/07, JoseBovet <jose.bovet@gmail.com> wrote:
>
> hi guy's
>
>
> I have a  problem with a date format,
> I need format a Integer to Date  or Integer to String
> a example:
>
> int number1 20070101 to date format (01-01-2007)
> or
>
> int number1 20070101 to String format (01-01-2007)
>
> number1 is get for  method in a DB oracle!!!
>
>
> greetingsĀ°
>
>
>
> --
> View this message in context: http://www.nabble.com/I-need-help-with-date-format-tf4767519.html#a13636581
> Sent from the Velocity - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message