# getZonedDayOfWeek

Industry: Core

## Signature

```ts
getZonedDayOfWeek(ianaTimezone: string): number | null
```

Return the current day of week for the specified IANA timeZone.

- Uses Temporal.Now.zonedDateTimeISO() to get the current time.
- Returns 1-7 (Monday=1 through Sunday=7).
- Validation is performed on the timezone.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `ianaTimezone` | `string` | IANA name or UTC offset: a time zone identifier (`+05:30`, `+0530`, `-08`) or a stored offset (`±HH:MM[:SS]`, what `getTimeZoneOffset` returns) |

## Returns

current day of week number (1-7) or null on invalid input

## Examples

```ts
import { getZonedDayOfWeek } from "@northguild/gmt/zoned/get";

getZonedDayOfWeek("Australia/Sydney") // 5
```

## Source

[zoned/get/getZonedDayOfWeek.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/zoned/get/getZonedDayOfWeek.ts)
