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

EDATE Function

  Windows   Relative Date   Date   Edate

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 month 2021-09-20 months=+1 2021-10-20
2 last month 2021-09-20 months=-1 2021-08-20
3 next two months 2021-09-20 months=+2 2021-11-20
4 next three months 2021-09-20 months=+3 2021-12-20
5 next four months 2021-09-20 months=+4 2022-01-20
6 next five months 2021-09-20 months=+5 2022-02-20
Steps Outcome
SUCCESS 033ms
SUCCESS 029ms
SUCCESS 028ms
SUCCESS 019ms
SUCCESS 020ms
SUCCESS 018ms
SUCCESS 0.18s
Serenity BDD version 3.6.22