[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [index](../README) / countdownTarget

# Function: countdownTarget()

> **countdownTarget**(`mode`, `endsOn`, `endsAt`): `string`

What a countdown's settings count to: `mode` `midnight` or `date`, the
day the merchant typed (`YYYY-MM-DD`) and, optionally, the time
(`HH:MM`). Undefined when they count to nothing — no day for `date`, or
any other mode.

## Parameters

### mode

`string`

### endsOn

`string`

### endsAt

`string`

## Returns

`string`
