Skip to main content

Format Dates for Scenario Editor Tests

Format Dates for Scenario Editor Tests

Ex:Use Octoberdate 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, 20202026

=today().format('MMMM d,Y')

Add Functions and methods in JS DPL:

Evaluate DPL:


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai