From 88a1382b61c318f03e3189be1f3a7a12f3d6a148 Mon Sep 17 00:00:00 2001 From: Seamus Lee <seamuslee001@gmail.com> Date: Tue, 15 Oct 2019 01:06:56 +0200 Subject: [PATCH] Update custom data date format information as per @colemanw Co-Authored-By: colemanw <coleman@civicrm.org> --- docs/api/v4/custom-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/v4/custom-data.md b/docs/api/v4/custom-data.md index 63ec965b..411147f3 100644 --- a/docs/api/v4/custom-data.md +++ b/docs/api/v4/custom-data.md @@ -10,7 +10,7 @@ $values['custom_field_reference'] = 'value'; To return custom data for an entity just include the machine name of the custom data in the select array. -For setting custom date fields, (ie CustomValue create), date format is `YmdHis`, for example: `20050425000000`. +For setting custom date fields, date format is anything understood by `strtotime`, e.g. "now" or "-1 week" or "2020-12-25" This is just a brief introduction; each API may have different requirements and allow different formats for accessing the custom data. See the [API function documentation](/api/index.md) and also read the comments and documentation in each API php file (under `civicrm/CRM/api/v3` in your CiviCRM installation) for exact details, which vary for each API entity and function. -- GitLab