You are here

function _webform_submit_date in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/date.inc \_webform_submit_date()
  2. 6.3 components/date.inc \_webform_submit_date()
  3. 6.2 components/date.inc \_webform_submit_date()
  4. 7.4 components/date.inc \_webform_submit_date()

Implements _webform_submit_component().

File

components/date.inc, line 335
Webform module date component.

Code

function _webform_submit_date($component, $value) {

  // Convert the date to an ISO 8601 format.
  return $value['year'] && $value['month'] && $value['day'] ? webform_date_string($value, 'date') : '';
}