@check_type(dict)
def get_expression(date):
    'Returns a date expression for a date object.\n\n    Concatenates start and end dates if no date expression exists.\n\n    :param dict date: an ArchivesSpace date\n\n    :returns: date expression for the date object.\n    :rtype: str\n    '
    try:
        expression = date['expression']
    except KeyError:
        if date.get('end'):
            expression = '{0}-{1}'.format(date['begin'], date['end'])
        else:
            expression = date['begin']
    return expression
Returns a date expression for a date object.

Concatenates start and end dates if no date expression exists.

:param dict date: an ArchivesSpace date

:returns: date expression for the date object.
:rtype: str
@check_type(dict)
def get_expression(date):
    'Returns a date expression for a date object.\n\n    Concatenates start and end dates if no date expression exists.\n\n    :param dict date: an ArchivesSpace date\n\n    :returns: date expression for the date object.\n    :rtype: str\n    '
    try:
        expression = date['expression']
    except KeyError:
        if date.get('end'):
            expression = '{0}-{1}'.format(date['begin'], date['end'])
        else:
            expression = date['begin']
    return expression