Calendar.Item.Occurrence
------------------------

Returns the occurrence date of an event.

| 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.Occurrence"; EventRef ) 

**MBS**( **"Calendar.Item.Occurrence";** /\* Returns the occurrence date of an event. \*/  
**$EventRef**) /\* The reference to the event. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EventRef | The reference to the event. | $eventRef |

### Result

Returns date or error.

### Description

Returns the occurrence date of an event.   
Since all instances of a repeating event have the same UID, we need another way to differentiate between those events. This method returns the date on which this event was originally scheduled to occur. This value will remain the same even if the event has been detached and its start date has changed. For events not part of a repeating pattern, this method will return the same value as startDate.  
### Example Databases

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

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Calendar.Item.NextAlarmDate](CalendarItemNextAlarmDate.md) - [Calendar.Item.RemoveAlarm](CalendarItemRemoveAlarm.md)

[HTML Version](CalendarItemOccurrence.shtml)