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!

Display VO timestamp attribute in the format of 'MM/DD/YYYY HH24:MI:SS'

2954073Jun 9 2020 — edited Jun 15 2020

Hello All,

I have a VO with attribute type Timestamp , I tried to display it in the format of ('MM/DD/YYYY HH24:MI:SS') but with no luck still.

The available formats in Jdeveloper do not have the above format.

Am I supposed to use groovy? if yes what to do?

If not how can I achieve this format?

Thank you

Amal

Comments

Timo Hahn

User, tell us your exact JDev version, please!

In the EO or VO you select the attribute, then select the U-Hint tab and set 'Simple Date' as format type, then you can enter your pattern as 'yyyy/MM/dd hh:mm:ss' into the format field:

pastedImage_0.png

In the UI you get

pastedImage_1.png

Timo

Dimitar Dimitrov

Just a small correction - he asked for HH24:MI:SS, so 'hh' in the Java format mask must me either 'HH' (for hour in day 00-23) or 'kk' (for hour in day 01-24). Also he asked for MM/DD/YYYY, so Java format mask must be 'MM/dd/yyyy':

MM/dd/yyyy HH:mm:ss

MM/dd/yyyy kk:mm:ss

1 - 2

Post Details

Added on Jun 9 2020
2 comments
822 views