.. index:: 
  !DocumentLicense.getExpiryDate Method
  
.. _id3_document_document_license_get_expiry_date_class_method:

===============================================================================
DocumentLicense.getExpiryDate Method
===============================================================================

Module: :ref:`DocumentLicense<id3_document_document_license_class>`

Definition
----------

Retrieves the license expiry date.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        @staticmethod
        get_expiry_date() -> str

      **Returns**

        .. line-block::

          ``str``
          The license expiry date.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        static String getExpiryDate()

      **Returns**

        .. line-block::

          ``String``
          The license expiry date.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public static string GetExpiryDate()

      **Returns**

        .. line-block::

          ``string``
          The license expiry date.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public static String getExpiryDate() throws DocumentException

      **Returns**

        .. line-block::

          ``String``
          The license expiry date.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public static func getExpiryDate() throws -> String

      **Returns**

        .. line-block::

          ``String``
          The license expiry date.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3DocumentLicense_GetExpiryDate (
            char * expiryDate, 
            int * expiryDateSize)

      **Parameters**

        .. line-block::

          ``expiryDate`` char *
          :guilabel:`out` The license expiry date.

          ``expiryDateSize`` int *
          :guilabel:`in` Size of the 'expiryDate' buffer. Receives the minimum required buffer size to hold the 'expiryDate' string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in 'expiryDate' (excluding terminating NULL character).


      **Returns**

        .. line-block::

          ``int``
          An error code.
          See :ref:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.


