Skip to content
ts
import { formatDay } from '@trail-run/core/time/helpers';

Function: formatDay()

ts
function formatDay(day): string;

Defined in: src/time/helpers.ts:38

Formats a day number (0-6) into a weekday name in appropriate locale.

Parameters

day

0 | 1 | 2 | 3 | 4 | 5 | 6

Returns

string

Released under the MIT License.