From ed7c78a1aa7a18b0830fc43bbd688ef0871d7d0d Mon Sep 17 00:00:00 2001 From: Sam Ramon <15154970+samantharamon@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:07:15 -0700 Subject: [PATCH] Fix method --- docs/outlook/get-or-set-the-time-of-an-appointment.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/outlook/get-or-set-the-time-of-an-appointment.md b/docs/outlook/get-or-set-the-time-of-an-appointment.md index 64571eaea..b561d4746 100644 --- a/docs/outlook/get-or-set-the-time-of-an-appointment.md +++ b/docs/outlook/get-or-set-the-time-of-an-appointment.md @@ -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 --- @@ -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()}`); }); }