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!

date picker does not show correct time in 24-hour format

abolluFeb 12 2014 — edited Mar 3 2014

Hi,

I have an inputDate component in my page.

My requirement is to show date & time and time in 24 hour format.

For example: 02/12/2014 15:27

I have this piece of code:

<af:inputDate label="Label 1" id="id1" autoSubmit="true">

  <af:convertDateTime type="both" pattern="MM/dd/yyyy HH:mm"/>

</af:inputDate>

The datepicker is supposed to show the current date & time.

But it does not show the correct hours after noon. For example at 14:00 Hrs it shows the hours as 2, it should be showing 14.

I'm using Jdev: JDEVADF_11.1.2.0.0_GENERIC_110531.1615.6017

Any idea!!

Thanks,

Anil

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2014
Added on Feb 12 2014
4 comments
2,219 views