---
title: getSendingFinishedDate
slug: campaign/docs/getsendingfinisheddate
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

If the sending is not finished yet, an exception is thrown.

**Type**: Date

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

Time at which the mailing was started

**Code structure**

```javascript
Date getSendingFinishedDate(String sessionId, long mailingId)
```
