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

Function: isToday()

ts
function isToday(dateStr): boolean;

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

Check if a date string (YYYY-MM-DD) is today

Parameters

dateStr

string | null | undefined

Returns

boolean

Released under the MIT License.