cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate First and Last day previous month in IDT

0 Kudos

Hi Guys, please, I need to calculate the first and last day of a previous month for a giving date in IDT. Any help is much appreciated.

Regards,

Iv P.

Joe_Peters
Active Contributor
0 Kudos

Single-source or Multisource? If single-source, what's the underlying database?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Jyothirmayee , thanks for your feedback. I made little changes and It worked.

Regards,

Iv.

jyothirmayee_s
Active Contributor
0 Kudos

Hi,

Try this formula in IDT:

add_months(add_days((date-field),-extract(day from ( date-field ))),+1)

You can also try LAST_DAY()

Thanks,

Jothi