[nbj2ee] Re: f:convertDateTime

  • From: John Yeary < >
  • To:
  • Subject: [nbj2ee] Re: f:convertDateTime
  • Date: Mon, 8 Oct 2012 08:49:04 -0400

So are you returning a date, or timestamp? The date in the database in the absence of a time will always be 0:00:00 since that is the start of a day. If the times are in the database, then the behavior is incorrect.


John Yeary
NetBeans Dream Team
President Greenville Java Users Group
Java Users Groups Community Leader
Java Enterprise Community Leader



"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt

On Thu, Oct 4, 2012 at 12:25 AM, AeneasTroy < " target="_blank"> > wrote:
I get the same problem.

If I query a date from a MySQL database from a regular Java Program,
It works just fine.

But from a jsp page, I always get 0:00:00

It always returns the correct information, for example,
if I say

It orders it by the date in the Database.

I haven't figured out why.

P.S. Sorry, I'm a newbie. I've only been doing this for 2 months.

[nbj2ee] f:convertDateTime

Andreas Ernst 10/03/2012

<Possible follow-up(s)>

[nbj2ee] f:convertDateTime

AeneasTroy 10/04/2012

[nbj2ee] Re: f:convertDateTime

John Yeary 10/08/2012

[nbj2ee] Re: f:convertDateTime

Andreas Ernst 10/08/2012

[nbj2ee] Re: f:convertDateTime

John Yeary 10/08/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm