You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Round date value to the last day of a month

Accepted answer
11
Views
5
Comments
edited Aug 20, 2021 4:12PM in Reporting & Analytics for B2C Service 5 comments

Summary

How to convert a given day to the last day of that month?

Content

Dear reader,

Have looked in the report functions (Functions (custhelp.com)) and actually I'm looking for the opposite of the trunc(ation) function. If you have a date, I want to convert that date to the last day of that month.

Say I have '12-05-2021' (dd-mm-yyyy as format), then I want to display it as '31-05-2021'. Can this be achieved and if so how?

Thanks,
Hans

 

 

Version

21B

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!