Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19124

Date of birth format varies between hooks and API

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.9
    • Fix Version/s: 4.7.23
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The format of 'birth_date' varies depending on the hook/output. For example:

      The most bizarre is the format in the post hook:
      YYYYMMDD000000

      However the format in hook pre, which is a bit random, is:
      MM/DD/YYYY

      API calls return this, which is what I would expect everywhere:
      YYYY-MM-DD

      It would be great to standardize all this...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: