Skip to Main Content

APEX

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How does APP_DATE_TIME_FORMAT get defaulted when NULL?

Matt MulvaneyAug 15 2024 — edited Aug 15 2024

Q. How does APP_DATE_TIME_FORMAT get defaulted when NULL?

Scenario

I have an application with these default APEX globalization settings…

The inline help next to Application Date Time Format says

If this attribute value is not specified, then a reference to APP_DATE_TIME_FORMAT will return the NLS database session date format and the NLS time format.

Presumably the ‘_NLS time format_’ means the NLS_TIME_FORMAT parameter, which in my case is HH24.MI.SSXFF.

Due to the XFF portion, this HH24.MI.SSXFF is a timestamp format mask and cannot be to_dated with SYSDATE (unless we provide SYSTIMESTAMP) i.e

However APEX is defaulting the APP_DATE_TIME_FORMAT to DS HH24.MI.SS

I understand that the DS part is now represents either the value of APP_NLS_DATE_FORMAT or NLS_DATE_FORMAT - since these are both now identical. i.e the documentation states that APEX does this i.e

This date format [Application Date Format] is used to alter the NLS_DATE_FORMAT database session

However the HH24.MI.SS kind of resembles the NLS_TIME_FORMAT (i.e HH24.MI.SSXFF) however APEX has either (1) Stripped off the XFF (timestamp specific format mask portion) or (2) the documentation is misleading, and its taking it from another source.

Basically, the question is: How does APP_DATE_TIME_FORMAT get defaulted when NULL?

Cheers
MM

This post has been answered by Karel Ekema on Aug 16 2024
Jump to Answer
Comments
Post Details
Added on Aug 15 2024
2 comments
151 views