#NEWLINE# def set_expire( name , date ) : #NEWLINE# #INDENT# "\n    Sets the date on which the account expires. The user will not be able to\n    login after this date. Date format is mm/dd/yyyy\n\n    :param str name: the name of the user account\n\n    :param datetime date: the date the account will expire. Format must be\n    mm/dd/yyyy\n\n    :return: True if successful, False if not\n    :rtype: bool\n\n    :raises: CommandExecutionError on user not found or any other unknown error\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' shadow.set_expire username 07/23/2015\n    " #NEWLINE# _set_account_policy ( name , 'usingHardExpirationDate=1 hardExpireDateGMT={0}' . format ( date ) ) #NEWLINE# return ( get_expire ( name ) == name )