Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/outlook/get-or-set-the-time-of-an-appointment.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Get or set the time when composing an appointment in Outlook
description: Learn how to get or set the start and end time of an appointment in an Outlook add-in.
ms.date: 10/02/2025
ms.date: 10/27/2025
ms.topic: how-to
ms.localizationpriority: medium
---
Expand Down Expand Up @@ -64,10 +64,11 @@ function getStartTime() {
return;
}

const startTime = asyncResult.value;
// Display the start time in UTC format on the page.
write(`The start time in UTC is: ${asyncResult.value.toString()}`);
// Convert the start time to local time and display it on the page.
write(`The start time in local time is: ${asyncResult.value.toLocaleString()}`);
write(`The start time in UTC is: ${startTime.toUTCString()}`);
// Display the start time in local time on the page.
write(`The start time in local time is: ${startTime.toLocaleString()}`);
});
}

Expand Down