cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VS325
Helper I
Helper I

How to add last day of next month as default date?

Can someone please help me on how to add last day of next month as a default date? I already have first day of next month set as - Date(Year(Today()), Month(Today())+1, 1)

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Super User II
Super User II

Hi @VS325 ,

Just a thought, use:

DateAdd(
     Date(Year(Today()), Month(Today())+2, 1),
     -1,
     Days
)

 

Hope it helps !

View solution in original post

3 REPLIES 3
gabibalaban
Super User II
Super User II

Hi @VS325 ,

Just a thought, use:

DateAdd(
     Date(Year(Today()), Month(Today())+2, 1),
     -1,
     Days
)

 

Hope it helps !

View solution in original post

VS325
Helper I
Helper I

Thank you so much. Yes that works. I tried this also which works. 

 

DateAdd(
DateAdd(
Date(
Year(Today()),
Month(Today()) + 1,
1
),
1,
Months
),
-1,
Days
)

Yes, is the same logic. But you do an extra operation. 😊

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (88,308)