Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Fusion PayRoll
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

Introduction

One of the most common requirement while working with Data Columns having DATE datatype is to get the correct format. While some prefer ‘MM-DD-YYYY’ some regions use ‘DD-MM-YYYY’ and others might be comfortable with ‘YYYY-MM-DD’. When working with Oracle HCM Cloud UI Pages users may set their preferences (read complete article here) explicit conversion mechanism might be required when this data is to be passed as a BIP Report.

An individual has two options in this case:

  1. Use SQL Functions in SQL Query to get desired format

  2. Use Template (RTF/XPT) specific formatting.

In case of Oracle HCM Cloud many a time the SQL Based Date Functions like TO_CHAR (), TO_DATE () are not honored and they still return data in a specific format.

In such case, we may make use of the FORMAT MASK feature available.

Let us try to have a look at a worked example

Worked Example

We would create a very simple data model for this purpose.

SQL Query Used For Data Model

select to_char(sysdate, 'DD-MM-YYYY') date1

         sysdate date2,

         trunc(sysdate) date3

from dual

 

Once the Data Model is created and we try to have a look at the Sample Data it will appear

 

Next, we would need to create a Report Template in which we will fill the following details:

Column Name

Formatting Mask

Formatting Style

Sample Data

DATE1

 

Microsoft

02-08-2017

DATE2

DD-MM-YYYY

Microsoft

02-08-2017

DATE3

MM-DD-YYYY

Oracle

08-02-2017

 

On the Template, this setting would be found under the Data Formatting Options as shown:

 

The Report would then be generated.

 

Summary

This is how we can use different format mask on the Date Data Type to get different date formats as required by the external 3rd party system.

As of today only Microsoft and Oracle are the two Formatting Style Supported and one would need to key in (Free Flow Text) a valid date combination for the Report to display correct dates. There is currently no validation in place and in case an incorrect combination is entered the Report would go into error.

Please do try different combinations  (valid ones of course) and do share your findings.

That’s it from me for the time being. Good bye till next time, have a great day and do feel free to send your feedbacks/review comments on this article.


Ashish Harbhajanka

Add comment


Security code
Refresh

About the Author

Ashish Harbhajanka

 

Oracle Fusion HCM Techno Functional Consultant with overall 10 years of Experience in software industry with 5 years in EBS HRMS and rest 5 in Fusion HCM.

My areas of intesrest in Fusion HCM include :

a) Inbound Outbound Integration using FBL/HDL or BIP/HCM Extracts.

b) Fast Formula

c) BIP Reports

d) OTBI Reports

e) RESTFUL API / Web Service Call

f) Functional Setup

g) End to End Testing

h) Regression Testing

i) Preparing COnfiguration Workbooks

j) Creating Speed Solutions

k) Preparing User Guides

l) UPK

........

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner