---
title: getCurrentTime
slug: campaign/docs/getcurrenttime
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

This is useful for synchronizing the export of statistical response data.

**Type**: long

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |

**Return values**

The current Optimizely Campaign server time in milliseconds

**Code structure**

```javascript
long getCurrentTime(String sessionId)
```
