You need to sign in to do that
Don't have an account?
hogehoge
Help me this error
Error message
Method does not exist or incorrect signature: void addMonth(Integer) from the type Date.
How can I fix it?
Method does not exist or incorrect signature: void addMonth(Integer) from the type Date.
How can I fix it?
Date day = Date.today(); Date startDate = Date.newInstance( day.year() - ( day.month() < 4 ? 1 : 0 ) , ( day.month() >= 4 || day.month() <= 9 ) ? 4 : 10 , 1 ); Date endDate = startDate.addMonth( 6 ).addDay( - 1 );
try with below. If this helps, Please mark it as best answer.
Thanks!!
try with below code. its working..
If this helps, Please mark it as best answer.
Thanks!!