cancel
Showing results for 
Search instead for 
Did you mean: 

Can some one help me to convert add_months(trunc(to_date('01/01/2015','dd-mm-yyyy'),'yy'),12)+17 to equivalent SQL expression in Cyrstal Report ?

Former Member
0 Kudos

I have used  add_months(trunc(to_date('01/01/2015','dd-mm-yyyy'),'yy'),12)+17  in report query.

Now I have to use this in one formula (report level) to compare the dates.

Please help me to find equivalent SQL expression for this.

- Prashanth

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Prasanta,

The formula would look something like this:

cdate(year(date(2015,01,01))+1, 01,01) + 17


-Abhilash

Former Member
0 Kudos

Thanks Abhilash. It is working.

Answers (0)