# JavaScript Calendar Service API

The Calendar Service API is supported since WRT 1.1.

The Calendar Service API allows widgets to access, create, and manage calendars and calendar entries stored on a device. The API is integrated into WRT through the `device` object.

For an overview of the service and the API, see section Accessing and managing calendar information.

### Using the Calendar Service API

To use the Calendar Service API, your widget must first create a service object for it using the `device.getServiceObject()` method. Use `Service.Calendar` to identify the service provider and `IDataSource` to identify the supported interface:

    var so = device.getServiceObject("Service.Calendar", "IDataSource");

This service object can then be used to access the services provided by the API:

- `IDataSource.GetList()`

- `IDataSource.Add()`

- `IDataSource.Delete()`

- `IDataSource.Import()`

- `IDataSource.Export()`

- `IDataSource.RequestNotification()`

- `IDataSource.Cancel()`

### Emulator support

The S60 5th Edition SDK emulator provides full support for the Calendar Service API.