Ai
Gets the current date range from a sap.m.DateRangeSelection control.
sap.m.DateRangeSelection
Playwright Page (or compatible subset).
The ID of the DateRangeSelection control.
The start and end date strings.
ui5.date.getDateRange
Read the current start and end dates from a DateRangeSelection control.
Returns an object with start and end date strings in ISO format from the control.
Returns ISO-formatted date strings from getDateValue() and getSecondDateValue().
sap.m.DateRangeSelection — getDateValue(), getSecondDateValue()
Read current date range filter values for assertions.
const range = await getDateRangeSelection(page, 'range1');// { startDate: '2024-01-01', endDate: '2024-01-31' } Copy
const range = await getDateRangeSelection(page, 'range1');// { startDate: '2024-01-01', endDate: '2024-01-31' }
Gets the current date range from a
sap.m.DateRangeSelectioncontrol.