【问题标题】:Create a calendar link for Outlook Office 365 calendar?为 Outlook Office 365 日历创建日历链接?
【发布时间】:2022-01-14 19:03:32
【问题描述】:

我可以创建一个链接,用信息填充我的 Google 日历,如下所示...

<a href="http://www.google.com/calendar/event?action=TEMPLATE&text=MyEvent&dates=20150701T000000Z/20160305T000000Z&details=Test&location=Somewhere">Add to Google Calendar</a>

...效果很好。但是,如何创建一个功能相同但适用于基于 Web 的 Outlook Office 365 日历的日历?关于如何做到这一点的信息非常稀缺。

【问题讨论】:

    标签: calendar office365-apps


    【解决方案1】:

    我不知道这方面的官方文档,但我认为链接格式应该如下:

    https://outlook.office.com/calendar/0/deeplink/compose?body=description&enddt=2022-04-01T13%3A30%3A00%2B00%3A00&location=location&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=2022-04-01T13%3A00%3A00%2B00%3A00&subject=title
    

    或者让它更具可读性:

    https://outlook.office.com/calendar/0/deeplink/compose
       ?body=description
       &enddt=2022-04-01T13%3A30%3A00%2B00%3A00
       &location=location
       &path=%2Fcalendar%2Faction%2Fcompose
       &rru=addevent
       &startdt=2022-04-01T13%3A00%3A00%2B00%3A00
       &subject=title
    

    上面的日期时间是 URL 编码的,所以在编码之前看起来像:

    2022-04-01T13:30:00+00:00
    

    应该不言自明 (yyyy-mm-ddThh:mm:ss+zz:zz) + 之后的最后一位是与时区的 UTC (hh:mm) 的时间偏移量。

    来源: https://www.labnol.org/apps/calendar.html

    【讨论】:

      猜你喜欢
      • 2018-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-30
      • 1970-01-01
      相关资源
      最近更新 更多