Events.Event.SetEndDate
-----------------------

Sets the end date for the event.

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

MBS( "Events.Event.SetEndDate"; EKEvent; Date ) 

**MBS**( **"Events.Event.SetEndDate";** /\* Sets the end date for the event. \*/  
**$EKEvent**; /\* The reference to the event.e.g. $event \*/   
**$Date**) /\* The time stamp for end date.e.g. Get(CurrentHostTimeStamp) + 3600 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKEvent | The reference to the event. | $event |
| Date | The time stamp for end date. | Get(CurrentHostTimeStamp) + 3600 |

### Result

Returns OK or error.

### Description

Sets the end date for the event.  
### Examples

Update dates:

 Set Variable \[$c ; Value:CalendarTest::ItemUID \]  
Set Variable \[$r ; Value:MBS ("Events.Event.SetEndDate"; $c ; CalendarTest::ItemEndDate )\]  
Set Variable \[$r ; Value:MBS ("[Events.Event.SetStartDate](EventsEventSetStartDate.md)"; $c ; CalendarTest::ItemStartDate )\]  
Set Variable \[$r ; Value:MBS ("[Events.SaveEvent](EventsSaveEvent.md)"; $c ; "this"; 1 )\]  
### See also

- [Events.Event.GetAllDay](EventsEventGetAllDay.md)
- [Events.Event.GetEndDate](EventsEventGetEndDate.md)
- [Events.Event.GetStartDate](EventsEventGetStartDate.md)
- [Events.Event.SetAllDay](EventsEventSetAllDay.md)
- [Events.Event.SetStartDate](EventsEventSetStartDate.md)
- [Events.NewEvent](EventsNewEvent.md)
- [Events.SaveEvent](EventsSaveEvent.md)

### Example Databases

- [Mac and iOS/Events/Events Create Event](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Create%20Event.shtml#1ScriptAnchor_)
- [Mac and iOS/Events/Events Sync](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Sync.shtml#5ScriptAnchor_)

### Blog Entries

- [FileMaker and Calendar (iCal)](https://www.mbsplugins.de/archive/2016-04-23/FileMaker_and_Calendar_(iCal)/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[Events.Event.SetAvailability](EventsEventSetAvailability.md) - [Events.Event.SetStartDate](EventsEventSetStartDate.md)

[HTML Version](EventsEventSetEndDate.shtml)