Current Month and Quarter Calculations with Julian Date Time Functions

(Doc ID 533767.1)

Last updated on JULY 19, 2017

Applies to:

Siebel CRM - Version 7.5.3 [16157] and later
Oracle Solaris on SPARC (64-bit)
Product Release: V7 (Enterprise)
Version: 7.5.3 [16157]
Database: Oracle 9i
Application Server OS: Sun Solaris 2.8
Database Server OS: Sun Solaris 2.8

This document was previously published as Siebel SR 38-1077372651.

Checked for currency on February 19, 2016

Goal

I need to create two calculated fields - Rev_Rev_Qtr and Rev_Rec_Month.

I have tried to use the Functions JulianQtr(Date) and JulianMonth(Date) and I get the calculated julian number but that is not what I need. I need a number between 1 and 4 for the quarter and between 1 and 12 for the month.

What Calculated Value should I use to get the desired numbers?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms