I'd like to set the value of a Date field from my custom PHP code. How can this be made? Which format does the Date field expect when using the setValue() function?

1 Answer 1


Here's an example value that will set it to today:

  'timezone' => 'America/New_York',
  'date' => date('m/d/Y')

As always, easiest to find out how it's done by inspecting the fields as they are saved in the control panel.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.