Re: Date in jspx

2008-10-16 Thread Pablo Vázquez Blázquez
Thanks both. Pablo Vázquez Blázquez escribió: Hi, I have a long representing a date. How can I get the date and time associated in a jspx? I tried: format.date.short={0, date, short} format.time.short={0, time, short} But it gives me "null null", for instance with value = 1224170724804

Re: Date in jspx

2008-10-16 Thread Chris Pratt
The cleanest way would probably be to add an accessor to your Action that return new Date(value). Something like: public Date getDateValue () { return new Date(value); } Then in your page you can use: (*Chris*) On Thu, Oct 16, 2008 at 8:42 AM, Pablo Vázquez Blázquez <[EMAIL PROTECTED] >

Re: Date in jspx

2008-10-16 Thread Tobin Juday
How about something like: (disclaimer: haven't actually run it yet) Tobin On Thu, Oct 16, 2008 at 11:42 AM, Pablo Vázquez Blázquez < [EMAIL PROTECTED]> wrote: > Hi, > > I have a long representing a date. How can I get the date and time > associated in a jspx? > > I tried: > > format.date.shor