When I set the "Event date" date to "3/15/2026"

Set the date of a date field by its label, typed the way the control panel shows dates for the language of the account (1/31/2026 in US English).

Examples

When I set the "Event date" date to "3/15/2026"
When I set the "Post Date" date to "1/31/2026"
When we set the "Expiry Date" date to "12/31/2030"
And I set the "Event date" date to "7/4/2027"
When I set the "Event date" date to ""

Pattern

When(/^(I |we )*set the "([^"]*)" date to "([^"]*)"$/, …)

Part of @webship-js/craft-cms-steps (github.com/webship/craft-cms-steps), a step pack for Webship-js 2.0.x.