---
name: "BIS_fnc_setDate"
type: function
status: ok
groups: ["Environment"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_setDate
revid: 341320
updated: 2023-05-21T15:53:15Z
---

# BIS_fnc_setDate

*Function · Environment · Arma 3 v1.00*

## Description

Instantly set date and share it across network with optional transition effect.

## Syntax

```sqf
[value, global, transition] call BIS_fnc_setDate
```

**Parameters:**

- `value`: [Number](../topics/Number.md) or [Array](../topics/Array.md) in format Date
  - [Number](../topics/Number.md) - hours to skip. To show exactly *30 minutes later* put `30 / 60`; `0.5` will show `29 minutes later`
  - [Array](../topics/Array.md) in format Date - date
- `global`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) [true](../commands/true.md) for global execution
- `transition`: [Boolean](../topics/Boolean.md) (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to show a transition effect instead of an immediate skip

**Returns:** Date - the new date

## Examples

### Example 1

```sqf
[[2035, 12, 31, 23, 59], true, true] call BIS_fnc_setDate;
```

### Example 2

```sqf
[4, true, true] call BIS_fnc_setDate; // skip 4 hours. Same as image in description
```

### Example 3

```sqf
[30 / 60, true, true] call BIS_fnc_setDate; // skip 30 minutes and show a "30 minutes later" message
```

## See also

[date](../commands/date.md) · [setDate](../commands/setDate.md) · [skipTime](../commands/skipTime.md)

<sub>Source: [BI Community Wiki — BIS fnc setDate](https://community.bistudio.com/wiki/BIS_fnc_setDate) (revision 341320).</sub>
