The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

java date formatter

Posted by nina ashburn on August 29, 2001 at 5:57 AM

hi..
could anybody kindly resolve this problem for me, pls..
i'm getting the date from database, 2 b displayed on
a table, using PyList

{ PyList attr = new PyList();
attr.append("modelName");
attr.append("date");
py1 = api.getApi(attr,opt,report);
}
data[0][2] = py1[r][1];

Result: 2001-08-11
00:00:00.0

How could I get rid of the 00:00:00.0 ?



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us