Skip to main content

Format Dates for Scenario Editor Tests

Format Dates for Scenario Editor Tests

Use date formatting when a Scenario Editor test needs to enter, compare, or validate dates in the format expected by the application under test.

  • Confirm the expected date format with the application or API contract.
  • Avoid locale assumptions when tests run on different hosts or browsers.
  • Keep generated dates and expected dates in approved test data when possible.
  • Document timezone assumptions for date/time validations.

Validation workflow

  1. Generate or capture the source date.
  2. Convert it to the required display or API format.
  3. Use the formatted value in the input, request, or assertion.
  4. Validate the application saved or displayed the expected value.

Last updated: September 20, 2026