Events.Reminder.SetDueDateComponents
------------------------------------

The date by which this reminder should be completed.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Reminder.SetDueDateComponents"; EKReminder { ; Year; Month; Day; Hour; Minute; Second; TimeZone } ) 

**MBS**( **"Events.Reminder.SetDueDateComponents"** /\* The date by which this reminder should be completed. \*/  
**$EKReminder**; /\* The reference to the reminder. e.g. $Reminder \*/   
**$Year**; /\* Optional; The year number.  
If missing or negative, no year is defined. e.g. 2016 \*/   
**$Month**; /\* Optional; The month number.  
If missing or negative, no month is defined. e.g. 12 \*/   
**$Day**; /\* Optional; The day number.  
If missing or negative, no day is defined. e.g. 12 \*/   
**$Hour**; /\* Optional; The hour number.  
If missing or negative, no hour is defined. e.g. 16 \*/   
**$Minute**; /\* Optional; The minute number.  
If missing or negative, no minute is defined. e.g. 12 \*/   
**$Second**; /\* Optional; The second number.  
If missing or negative, no second is defined. e.g. 0 \*/   
**$TimeZone**) /\* Optional; The time zone to use.  
Value of "System" sets to system time zone.  
Value of "Default" sets to default time zone. e.g. "GMT" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| EKReminder | The reference to the reminder. | $Reminder |  |
| Year | The year number.   If missing or negative, no year is defined. | 2016 | Optional |
| Month | The month number.   If missing or negative, no month is defined. | 12 | Optional |
| Day | The day number.   If missing or negative, no day is defined. | 12 | Optional |
| Hour | The hour number.   If missing or negative, no hour is defined. | 16 | Optional |
| Minute | The minute number.   If missing or negative, no minute is defined. | 12 | Optional |
| Second | The second number.   If missing or negative, no second is defined. | 0 | Optional |
| TimeZone | The time zone to use.   Value of "System" sets to system time zone.   Value of "Default" sets to default time zone. | "GMT" | Optional |

### Result

Returns OK or error.

### Description

The date by which this reminder should be completed.  
The use of date components allows the due date and its time zone to be represented in a single property. An undefined time zone represents a floating date. Setting a date component without a hour, minute and second component will set allDay to true.  
### See also

- [Events.Reminder.SetStartDateComponents](EventsReminderSetStartDateComponents.md)

This function checks for a license.

Created 10th March 2016 , last changed 13th March 2016

  
[Events.Reminder.SetDueDate](EventsReminderSetDueDate.md) - [Events.Reminder.SetPriority](EventsReminderSetPriority.md)

[HTML Version](EventsReminderSetDueDateComponents.shtml)