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?
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.
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.
Try the below options:
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;