using format dd-MMM-yyyy HH:mm:ss
57061Aug 16 2004 — edited Sep 17 2004Hi,
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.