add month compensation

Controls the behavior when months are added to a date and the resulting date is not valid. For example, adding 1 month to 10/31 technically results in 11/31, a non-valid date. When add month compensation is up, the resulting date is 12/1, while a value of down yields 11/30, and “error” will issue a diagnostic. Other values are not defined.

  • up

  • down

Default Value: up
        
settingvalue
settingdate formatyyyy-Mmm-dd
settingdate orderymd
settingadd month compensationup
 
variablevalue
set variablenew date#fd(plusm(fj("2012-Jan-31"),1))
        
settingvalue
settingdate formatyyyy-Mmm-dd
settingdate orderymd
settingadd month compensationdown
 
variablevalue
set variablenew date#fd(plusm(fj("2012-Jan-31"),1))

Copyright © 2025 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400