Home > Date And Time > Relative date time > EOMONTH Function > The start date with 31 as last day
Report generated 11-04-2023 10:42

EOMONTH Function

  Windows   Eomonth   Relative Date   Date

The start date with 31 as last day

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 month 2021-10-31 months=+1 2021-11-30
2 last month 2021-10-31 months=-1 2021-09-30
3 next two months 2021-10-31 months=+2 2021-12-31
4 next three months 2021-10-31 months=+3 2022-01-31
5 next four months 2021-10-31 months=+4 2022-02-28
6 next five months 2021-10-31 months=+5 2022-03-31
Steps Outcome
SUCCESS 017ms
SUCCESS 021ms
SUCCESS 028ms
SUCCESS 019ms
SUCCESS 017ms
SUCCESS 020ms
SUCCESS 0.15s
Serenity BDD version 3.6.22