# Dates

Date and time related utility functions.

***

## today

Returns the actual date as a Date object. [Source](https://javascriptf1.com/snippet/get-the-current-date-in-javascript)

**Syntax:**

```javascript
today() : Date
```

**Parameters:** None

**Returns:** `Date`

**Example:**

```javascript
import * as Dates from "./utils/Dates.js";

let today = Dates.today();
```

***

## todayAsIsoString

Returns today's date as string formatted in the ISO format: 2020-11-27. [Source](https://javascriptf1.com/snippet/get-the-current-date-in-javascript)

**Syntax:**

```javascript
todayAsIsoString() : string
```

**Parameters:** None

**Returns:** String

**Example:**

```javascript
import * as Dates from "./utils/Dates.js";

let today = Dates.todayAsIsoString();
```

***

## yesterday

Returns yesterday's date as a Date object. [Source](https://javascriptf1.com/snippet/get-yesterdays-date-in-javascript)

**Syntax:**

```javascript
yesterday() : Date
```

**Parameters:** None

**Returns:** `Date`

**Example:**

```javascript
import * as Dates from "./utils/Dates.js";

let yesterday = Dates.yesterday();
```

***

## yesterdayAsIsoString

Returns yesterday's date as a string formatted in ISO format. 2020-11-27. [Source](https://javascriptf1.com/snippet/get-yesterdays-date-in-javascript)

**Syntax:**

```javascript
yesterdayAsIsoString() : string
```

**Parameters:** None

**Returns:** String

**Example:**

```javascript
import * as Dates from "./utils/Dates.js";

let yesterday = Dates.yesterdayAsIsoString();
```

***

## tomorrow

Returns tomorrow's date as a Date object. [Source](https://javascriptf1.com/snippet/get-tomorrows-date-in-javascript)

**Syntax:**

```javascript
tomorrow() : Date
```

**Parameters:** None

**Returns:** `Date`

**Example:**

```javascript
import * as Dates from "./utils/Dates.js";

let tomorrow = Dates.tomorrow();
```

***

## tomorrowAsIsoString

Returns tomorrow's date as a string formatted in ISO format. 2020-11-27. [Source](https://javascriptf1.com/snippet/get-tomorrows-date-in-javascript)

**Syntax:**

```javascript
tomorrowAsIsoString() : string
```

**Parameters:** None

**Returns:** String

**Example:**

```javascript
import * as Dates from "./utils/Dates.js";

let tomorrow = Dates.tomorrowAsIsoString();
```

***
