Calendar.Item.SetDueDate
------------------------

Sets due date of a reminder/task.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Calendar](component_Calendar.md) | [3.4](newinversion34.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Calendar.Item.SetDueDate"; reminderRef; Date ) 

**MBS**( **"Calendar.Item.SetDueDate";** /\* Sets due date of a reminder/task. \*/  
**$reminderRef**; /\* The reference to the reminder. \*/   
**$Date**) /\* The new due date.e.g. Get(CurrentTimestamp) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| reminderRef | The reference to the reminder. | $reminderRef |
| Date | The new due date. | Get(CurrentTimestamp) |

### Result

Returns OK or error.

### Description

Sets due date of a reminder/task.  
  
There is a bug in OS X which prevents the saving of the time portion of the due date.  
You can move to [Events.Reminder.SetDueDate](EventsReminderSetDueDate.md) function to workaround this.  
### See also

- [Calendar.Item.GetDueDate](CalendarItemGetDueDate.md)
- [Calendar.Item.GetEndDate](CalendarItemGetEndDate.md)
- [Calendar.Item.SetCalendar](CalendarItemSetCalendar.md)
- [Calendar.Item.SetCompleted](CalendarItemSetCompleted.md)
- [Calendar.Item.SetPriority](CalendarItemSetPriority.md)
- [Calendar.Item.SetStartDate](CalendarItemSetStartDate.md)
- [Calendar.Item.SetTitle](CalendarItemSetTitle.md)
- [Calendar.SaveEvent](CalendarSaveEvent.md)
- [Calendar.SaveReminder](CalendarSaveReminder.md)
- [Events.Reminder.SetDueDate](EventsReminderSetDueDate.md)

### Example Databases

- [Mac and iOS/Events/Calendar/Reminders](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Calendar/Reminders.shtml#2ScriptAnchor_)

### Blog Entries

- [Todo/Reminder Synchronization for FileMaker on Mac using MBS Plugin](https://www.mbsplugins.de/archive/2016-09-22/TodoReminder_Synchronization_f/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 10th March 2016

  
[Calendar.Item.SetCompletionDate](CalendarItemSetCompletionDate.md) - [Calendar.Item.SetEndDate](CalendarItemSetEndDate.md)

[HTML Version](CalendarItemSetDueDate.shtml)