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

Function: getDayOfWeek()

ts
function getDayOfWeek(dateStr): string;

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

Get the day of week name from a date string (e.g., "2024-07-04" -> "Thursday")

Parameters

dateStr

string

Returns

string

Released under the MIT License.