Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 53 Oracle Analytics and AI Sharing Center
- 25 Oracle Analytics and AI Lounge
- 306 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.6K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 118 Oracle Analytics and AI Trainings
- 22 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
How to remove hour in OTBI learning report?
I'm trying to create a report showing learning due date and exact completion date. I would like to remove the hour that only date should be visible in the report. Is there any way to remove hour?
Answers
-
Hi @Agnieszka Brela,
Welcome to the Oracle Analytics Community.
Please define your column as Date and it'll remove the timestamp. You can use syntax like following.
CAST(DUE_DATE as DATE) DUE_DATE - Is the 'Due Date' Column.
Hope this help.
Thank you.
0 -
Hi @Agnieszka Brela,
Another way you can achieve it by changing the 'Data Format' of that particular column and define it as per your requirement.
Please find below a screenshot and follow the highlighted in Yellow.
Hope this help.
Thank you.
0 -
Try the below options:
- Using SQL (TRUNC Function)
If you're writing a SQL query, use:
sql
SELECT TRUNC(learning_due_date), TRUNC(completion_date)
FROM learning_table;
This removes the time portion, leaving only the MM/DD/YYYY format.2. Adjusting the Date Format in OTBI
In Oracle Transactional Business Intelligence (OTBI), you can modify the column properties:
Go to Column Properties → Data Format.
Select Date Format and choose a format that excludes time (e.g., MM/DD/YYYY).3. Using CAST or TO_CHAR for Formatting
you can convert the date to a string format:
sql
SELECT TO_CHAR(learning_due_date, 'MM/DD/YYYY') AS Due_Date
FROM learning_table;0




