I am trying to get the specific dates after certain months. For example, if I have a 2018/1/1, after 3 months, I want to get 2018/3/31. I use this: begindate. addmonth(3). adddays(-1). This works fine until I have some interesting dates. Please see the results I tested below. Does anyone know how the dates marked wrong? And how can I solve this? Many thanks!
Begin date End date
2018/2/28 2018/5/27(Should be 2018/5/30)
2018/4/30 2018/7/29(Should be 2018/7/30)