# getTaxYear

Source: https://pakdatakit.dev/api/typescript/incometax/functions/gettaxyear/

```ts
function getTaxYear(date?): number | null;
```

Defined in: [incometax.ts:59](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/incometax.ts#L59)

The tax year (July to June) that contains a date, or `null` for an invalid date.

## Parameters

| Parameter | Type |
| :------ | :------ |
| `date?` | `string` \| `Date` |

## Returns

`number` \| `null`
