cancel
Showing results for 
Search instead for 
Did you mean: 

Month () in IDT

former_member402770
Participant
0 Kudos

Hi Experts,

Can you please help to FORMAT the below formula in IDT. Month function is unavilable in IDT

month (date) = 7

date is dimension in format datetime..

Thanks,

Dinya

Joe_Peters
Active Contributor
0 Kudos

Is this multisource or single source? If single source, what is the underlying database?

Accepted Solutions (1)

Accepted Solutions (1)

ayman_salem
Active Contributor
0 Kudos

Use substr to get month and year from a date (current date 'sysdate' or any other date)

ex.

cCurrDate: to_char(sysdate)

MonthOfCurrDate: substr(@Select(cCurrDate),4,2)

YearOfCurrDate: substr(@Select(cCurrDate),7,4)

Answers (0)