Need to show latest updated Date (MM/DD) or Time (hh:mm) against an individual chat or chat group list

Sandip Atkole 41 Reputation points
2020-10-30T07:36:06.987+00:00

Hi, We have a requirement to show the latest updated Date (MM/DD) or (hh:mm) format against the respect chat or chat group same as shown in the Microsoft Teams (please see the "Teams-Chat list Date-Time.PNG" screenshot)
36282-teams-chat-list-date-time.png

In order to implement this we are using the "lastUpdatedDateTime" json property from the API - https://graph.microsoft.com/beta//me/chats?$expand=members
Yes, we do convert UTC date-time to local date-time. (please see the "Chats-API-Output.PNG" screenshot)
36283-chats-api-output.png

The questions are -

  • Is it correct to use the "lastUpdatedDateTime" json property to show the chat/chat group latest updated date/time?
  • If No, then is there any other property or any new property in a future release?
  • If Yes, then we observed that fore few chats there is a difference in the date-time when compared with the date/time displayed in MS Teams and API (local date-time)
    (Please refer to date-time-issue.png) 36301-date-time-issue.png - Please see the underlined area. If you convert "2020-10-30T06:42:52.748Z" then the local IST time is "12:12 PM" which is shown in our application whereas MS Teams show "11:50 AM".

Please could you help me with these questions?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,346 questions
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,101 Reputation points Microsoft Vendor
    2020-11-02T02:45:04.27+00:00

    @Sandip Atkole ,
    As we are mainly responsible for general issue of Microsoft Teams. Your question which is involved in development is not supported by us. I would remove the office-teams-windows-itpro tag. Hope you get better response.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.