Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using format dd-MMM-yyyy HH:mm:ss

57061Aug 16 2004 — edited Sep 17 2004
Hi,
i want to change default date format to dd-MMM-yyyy HH:mm:ss , the attribute type in vo/eo is Timestamp.
how to change the format ? the Format type and format in Control hints type is disabled when i tried to change format fo Timestamp attribute.

i tried to add :
<DOMAIN CLASS="oracle.jbo.domain.Timestamp">
<FORMATTER name="Simple Date" class="oracle.jbo.format.DefaultDateFormatter">
<FORMAT text="yyyy-MM-dd" />
<FORMAT text="hh:mm:ss" />
<FORMAT text="yyyy-MM-dd G 'at' hh:mm:ss" />
<FORMAT text="EEE, MMM d, ''yy" />
<FORMAT text="dd-mm-yy" />
<FORMAT text="dd-mmm-yyyy" />
<FORMAT text="dd/mmm/yyyy" />
</FORMATTER>
</DOMAIN>

then i tried to change the format type and the format to :
"Simple Date" and "hh:mm:ss"

i've got error :
(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Cannot format given Object as a Date
----- LEVEL 1: DETAIL 0 -----
(java.lang.IllegalArgumentException) Cannot format given Object as a Date

any help .. ?

Thanks for advance,
Ricky H.P.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2004
Added on Aug 16 2004
4 comments
853 views