File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11---
22title : Get or set the time when composing an appointment in Outlook
33description : Learn how to get or set the start and end time of an appointment in an Outlook add-in.
4- ms.date : 10/02 /2025
4+ ms.date : 10/27 /2025
55ms.topic : how-to
66ms.localizationpriority : medium
77---
@@ -64,10 +64,11 @@ function getStartTime() {
6464 return ;
6565 }
6666
67+ const startTime = asyncResult .value ;
6768 // Display the start time in UTC format on the page.
68- write (` The start time in UTC is: ${ asyncResult . value . toString ()} ` );
69- // Convert the start time to local time and display it on the page.
70- write (` The start time in local time is: ${ asyncResult . value .toLocaleString ()} ` );
69+ write (` The start time in UTC is: ${ startTime . toUTCString ()} ` );
70+ // Display the start time in local time on the page.
71+ write (` The start time in local time is: ${ startTime .toLocaleString ()} ` );
7172 });
7273}
7374
You can’t perform that action at this time.
0 commit comments