Home > Date And Time > Relative date time > EOMONTH Function > The start date do not involve last day of month
Report generated 11-04-2023 10:42

EOMONTH Function

  Windows   Eomonth   Relative Date   Date

The start date do not involve last day of month

Scenario Outline

Given the date <start date>
When relative delta <relative delta> is applied
Then the relative date should be <relative date>

Examples: 

# Description Start Date Relative Delta Relative Date
1 next end of month 2021-09-20 months=+1 2021-10-31
2 last end of month 2021-09-20 months=-1 2021-08-31
3 next end of two months 2021-09-20 months=+2 2021-11-30
4 next end of three months 2021-09-20 months=+3 2021-12-31
5 next end of four months 2021-09-20 months=+4 2022-01-31
6 next end of five months 2021-09-20 months=+5 2022-02-28
Steps Outcome
SUCCESS 015ms
SUCCESS 016ms
SUCCESS 016ms
SUCCESS 026ms
SUCCESS 017ms
SUCCESS 016ms
SUCCESS 0.13s
Serenity BDD version 3.6.22