How to fetch specific date format?
Format
Ex: DatesOctober for20, Scenario Editor Tests2020
Use=today().format('MMMM dated,Y')
Add whenFunctions aand Scenario Editor test needs to enter, compare, or validate datesmethods in theJS format expected by the application under test.DPL:
Recommended
guidance
Evaluate
ConfirmDPL:the
expecteddate
formatLast
withupdated:theJuneapplication26,or2023APIIf
contract.Avoidyoulocalehaveassumptionsanywhen tests runfeedback ondifferentthishoststopic,orpleasebrowsers.Keepcontactgeneratedusdatesatand expected dates in approved test data when possible.Document timezone assumptions for date/time validations.
Validation workflow
Generate or capture the source date.Convert it to the required display or API format.Use the formatted value in the input, request, or assertion.Validate the application saved or displayed the expected value.
Last updated: September 20, 2026documentation@appvance.ai