Skip to content

Kirby 6.0.1

Date::firstWeekday()

Returns the first day of the week (0 = Sunday ... 6 = Saturday) for the given locale (or as defined via config option)

Date::firstWeekday(string $locale): int<0, 6>

Parameters

Name Type Default
$localerequired string no default value

Return type

int<0, 6>

Parent class

Kirby\Toolkit\Date