Braze JavaScript SDK
    Preparing search index...

    Function setUserDateOfBirth

    • Sets the date of birth of the user. Alternatively takes in null values for all parameters to set date of birth to null.

      Parameters

      • year: number | null
      • month: number | null

        1-12

      • day: number | null

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.