Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

how to get last date of most recent completed month

Hi Experts,

Can any please help me to obtain last date of most recent completed month dynamically.

For example we are in April last date of most recent completed month Is 31/03/2019. How to get this value in field.

Thanks in advance.

1 Solution

Accepted Solutions
Pato1984
Partner - Contributor III
Partner - Contributor III

Hello ,

You can use 

Addmonths(Monthend(max(your fielddate)),-1)

View solution in original post

3 Replies
arulsettu
Master III
Master III

try this in your set analysis

MonthEnd(date(Today())-1)

mahitham
Creator II
Creator II
Author

hi @arulsettu 

Getting 30/04/2019 as output. But expected output is always need to show the  last date of last completed month I,e, 31/03/2019

Pato1984
Partner - Contributor III
Partner - Contributor III

Hello ,

You can use 

Addmonths(Monthend(max(your fielddate)),-1)