This topic has not yet been rated - Rate this topic

Mailbox.convertToLocalClientTime method (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Gets a dictionary containing time information in local client time.

Last modified: March 12, 2014

Applicable Outlook modes

Compose or read

Available in requirement sets

Mailbox

Office.context.mailbox.convertToLocalClientTime(timeValue)

timeValue

A Date object.

A dictionary containing a date in the local client's time zone, containing fields for year, month, date, hours, minutes, seconds, time zone, and time zone offset.

The dates and times used by a mail app for Outlook or Outlook Web App can use different time zones. Outlook uses the client computer time zone; Outlook Web App uses the time zone set on the Exchange Admin Center (EAC). You should handle date and time values so that the values you display on the user interface are always consistent with the time zone that the user expects.

If the mail app is running in Outlook, the convertToLocalClientTime method will return a dictionary object with the values set to the client computer time zone. If the mail app is running in Outlook Web App, the convertToLocalClientTime method will return a dictionary object with the values set to the time zone specified in the EAC.

App types

Mail app

Supported clients

Outlook 2013, Outlook 2013 SP1, Outlook Web App, and OWA for Devices

Library

Office.js

Namespace

Office

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.