Events.Event.SetStartDate
-------------------------

Sets the start 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.SetStartDate"; EKEvent; StartDate ) 

**MBS**( **"Events.Event.SetStartDate";** /\* Sets the start date for the event. \*/  
**$EKEvent**; /\* The reference to the event.e.g. $event \*/   
**$StartDate**) /\* The new start date for the event.e.g. Get(CurrentHostTimeStamp) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKEvent | The reference to the event. | $event |
| StartDate | The new start date for the event. | Get(CurrentHostTimeStamp) |

### Result

Returns OK or error.

### Description

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

Update dates:

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

- [Events.Event.GetEndDate](EventsEventGetEndDate.md)
- [Events.Event.GetStartDate](EventsEventGetStartDate.md)
- [Events.Event.SetEndDate](EventsEventSetEndDate.md)
- [Events.NewEvent](EventsNewEvent.md)
- [Events.Reminder.SetStartDate](EventsReminderSetStartDate.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.SetEndDate](EventsEventSetEndDate.md) - [Events.Event.SetStructuredLocation](EventsEventSetStructuredLocation.md)

[HTML Version](EventsEventSetStartDate.shtml)