> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# HSMDateTimeComponent

> Protobuf class HSMDateTimeComponent generated from WAProto.

Defined in: [WAProto/index.d.ts:6503](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6503)

## Implements

* [`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent)

## Constructors

### new HSMDateTimeComponent()

> **new HSMDateTimeComponent**(`p`?): [`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

Defined in: [WAProto/index.d.ts:6504](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6504)

#### Parameters

##### p?

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent)

#### Returns

[`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

## Properties

### calendar?

> `optional` **calendar**: `null` | [`CalendarType`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/HSMDateTimeComponent/enumerations/CalendarType)

Defined in: [WAProto/index.d.ts:6511](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6511)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`calendar`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#calendar)

***

### dayOfMonth?

> `optional` **dayOfMonth**: `null` | `number`

Defined in: [WAProto/index.d.ts:6508](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6508)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`dayOfMonth`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#dayofmonth)

***

### dayOfWeek?

> `optional` **dayOfWeek**: `null` | [`DayOfWeekType`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/HSMDateTimeComponent/enumerations/DayOfWeekType)

Defined in: [WAProto/index.d.ts:6505](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6505)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`dayOfWeek`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#dayofweek)

***

### hour?

> `optional` **hour**: `null` | `number`

Defined in: [WAProto/index.d.ts:6509](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6509)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`hour`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#hour)

***

### minute?

> `optional` **minute**: `null` | `number`

Defined in: [WAProto/index.d.ts:6510](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6510)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`minute`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#minute)

***

### month?

> `optional` **month**: `null` | `number`

Defined in: [WAProto/index.d.ts:6507](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6507)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`month`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#month)

***

### year?

> `optional` **year**: `null` | `number`

Defined in: [WAProto/index.d.ts:6506](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6506)

#### Implementation of

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent).[`year`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent#year)

## Methods

### create()

> `static` **create**(`properties`?): [`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

Defined in: [WAProto/index.d.ts:6512](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6512)

#### Parameters

##### properties?

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent)

#### Returns

[`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

***

### decode()

> `static` **decode**(`r`, `l`?): [`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

Defined in: [WAProto/index.d.ts:6514](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6514)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:6513](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6513)

#### Parameters

##### m

[`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

Defined in: [WAProto/index.d.ts:6515](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6515)

#### Parameters

##### d

#### Returns

[`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:6518](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6518)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:6517](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6517)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:6516](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6516)

#### Parameters

##### m

[`HSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/classes/HSMDateTimeComponent)

##### o?

`IConversionOptions`

#### Returns

`object`
