<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Omar Salloum</title>
    <description>The latest articles on DEV Community by Omar Salloum (@omarsalloum).</description>
    <link>https://dev.to/omarsalloum</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4219854%2F2a63b422-18bc-4f2b-80bc-195e29c12c24.jpg</url>
      <title>DEV Community: Omar Salloum</title>
      <link>https://dev.to/omarsalloum</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omarsalloum"/>
    <language>en</language>
    <item>
      <title>Turning plain text into a calendar file in the browser: dates, time zones and ICS quirks</title>
      <dc:creator>Omar Salloum</dc:creator>
      <pubDate>Tue, 10 Nov 2026 21:10:14 +0000</pubDate>
      <link>https://dev.to/omarsalloum/turning-plain-text-into-a-calendar-file-in-the-browser-dates-time-zones-and-ics-quirks-1162</link>
      <guid>https://dev.to/omarsalloum/turning-plain-text-into-a-calendar-file-in-the-browser-dates-time-zones-and-ics-quirks-1162</guid>
      <description>&lt;p&gt;I used to be an office planner, and plans arrived by email and chat all day. Every one had to be typed into a calendar. So I built a small converter: paste text, check what it found, download an &lt;code&gt;.ics&lt;/code&gt; file. It runs entirely in the page. Nothing is uploaded and there is no account: &lt;a href="https://yotei.win/text-to-ics" rel="noopener noreferrer"&gt;https://yotei.win/text-to-ics&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is what I learned writing it, in case you are building something similar.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding the date
&lt;/h2&gt;

&lt;p&gt;There is no single format to parse, so the reader tries patterns in order and takes the first valid one:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;code&gt;2026-11-17&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;17/11/2026&lt;/code&gt;, &lt;code&gt;17-11-26&lt;/code&gt;, &lt;code&gt;17.11.2026&lt;/code&gt;, and &lt;code&gt;17/11&lt;/code&gt; without a year&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;17 November&lt;/code&gt;, &lt;code&gt;17th of November 2026&lt;/code&gt;, &lt;code&gt;17 de noviembre&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;November 17&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;today&lt;/code&gt;, &lt;code&gt;tomorrow&lt;/code&gt;, and a bare weekday, which means the next one&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Three things bit me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Month first or day first.&lt;/strong&gt; &lt;code&gt;04/05/2027&lt;/code&gt; is two different days. I do not guess: there is a "date order" setting, and it defaults to month first only for &lt;code&gt;en-US&lt;/code&gt;, &lt;code&gt;en-CA&lt;/code&gt; and &lt;code&gt;en-PH&lt;/code&gt; locales.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A date without a year&lt;/strong&gt; means the next time that day comes around, not this year's past one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;\b&lt;/code&gt; does not work with accents.&lt;/strong&gt; &lt;code&gt;lunedì&lt;/code&gt; ends in a non-ASCII letter, so &lt;code&gt;\b&lt;/code&gt; finds no word boundary after it. Lookarounds with the &lt;code&gt;u&lt;/code&gt; flag do:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;RegExp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`(?&amp;lt;![\\p{L}])(${DAY_RE})(?![\\p{L}])`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'iu'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Several events in one paste
&lt;/h2&gt;

&lt;p&gt;A schedule is the most useful input and the hardest. I support one event per line, a date as a heading with times underneath, and blocks separated by blank lines. If a line has a date and no time, it is a heading when the next line has a time but no date, and an all-day event otherwise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Time zones without a library
&lt;/h2&gt;

&lt;p&gt;A calendar file stores a moment, so "10:00 in Amsterdam" has to become a UTC instant. &lt;code&gt;Intl.DateTimeFormat&lt;/code&gt; can tell you the offset of a zone at a given moment, and two passes handle a daylight saving change:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;offsetMinutes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;utcMs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Intl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DateTimeFormat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'en-US'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;timeZone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hourCycle&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'h23'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'numeric'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'2-digit'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'2-digit'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;hour&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'2-digit'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minute&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'2-digit'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;second&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'2-digit'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fromEntries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;formatToParts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;utcMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;asUtc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;UTC&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hour&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minute&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;second&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;asUtc&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;utcMs&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;60000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;zonedToUtc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'-'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mi&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;':'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;guess&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;UTC&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mi&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;guess&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nf"&gt;offsetMinutes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;guess&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;guess&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nf"&gt;offsetMinutes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ICS details that break imports
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Lines end with CRLF, not LF.&lt;/li&gt;
&lt;li&gt;Lines are folded at 75 &lt;strong&gt;octets&lt;/strong&gt;, so count UTF-8 bytes, not characters. An accented letter at the fold point is where files break.&lt;/li&gt;
&lt;li&gt;Commas, semicolons and backslashes in text are escaped with a backslash.&lt;/li&gt;
&lt;li&gt;Every event needs a &lt;code&gt;UID&lt;/code&gt;, and two events must not share one.&lt;/li&gt;
&lt;li&gt;An all-day event uses &lt;code&gt;DTSTART;VALUE=DATE:20261117&lt;/code&gt; and the end date is exclusive, so a one-day event ends on the 18th.&lt;/li&gt;
&lt;li&gt;A time ending in &lt;code&gt;Z&lt;/code&gt; is UTC. A time with no &lt;code&gt;Z&lt;/code&gt; and no zone is "floating": it shows the same clock time everywhere, which is wrong for a call across zones.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One bug of my own: a &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; normalises CRLF to LF. My validator therefore reported "lines end with LF" on perfectly good files. The fix is to judge line endings only on a file read from disk, never on text that went through a text box.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add to calendar links
&lt;/h2&gt;

&lt;p&gt;Google, Outlook and Yahoo accept an event in the URL (&lt;code&gt;calendar.google.com/calendar/render?action=TEMPLATE&amp;amp;text=...&amp;amp;dates=...&lt;/code&gt;). Apple Calendar has no such link, so for iPhone and Mac the only route is the &lt;code&gt;.ics&lt;/code&gt; file.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools
&lt;/h2&gt;

&lt;p&gt;All of these run in the browser:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text to ICS: &lt;a href="https://yotei.win/text-to-ics" rel="noopener noreferrer"&gt;https://yotei.win/text-to-ics&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ICS file generator: &lt;a href="https://yotei.win/ics-file-generator" rel="noopener noreferrer"&gt;https://yotei.win/ics-file-generator&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CSV to ICS: &lt;a href="https://yotei.win/csv-to-ics" rel="noopener noreferrer"&gt;https://yotei.win/csv-to-ics&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ICS validator: &lt;a href="https://yotei.win/ics-validator" rel="noopener noreferrer"&gt;https://yotei.win/ics-validator&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Add to calendar link generator: &lt;a href="https://yotei.win/add-to-calendar-link-generator" rel="noopener noreferrer"&gt;https://yotei.win/add-to-calendar-link-generator&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm the maker of Yotei, a desktop app that reads events from screenshots. These tools are separate and free. If you find a phrase whose date it gets wrong, I would like to hear it.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>03/04/2026: Why Date Formats Put Calendar Events in the Wrong Week</title>
      <dc:creator>Omar Salloum</dc:creator>
      <pubDate>Mon, 02 Nov 2026 19:09:50 +0000</pubDate>
      <link>https://dev.to/omarsalloum/03042026-why-date-formats-put-calendar-events-in-the-wrong-week-170c</link>
      <guid>https://dev.to/omarsalloum/03042026-why-date-formats-put-calendar-events-in-the-wrong-week-170c</guid>
      <description>&lt;p&gt;&lt;em&gt;I make Yotei, a Windows and Mac app that is mentioned in this guide. Originally published at &lt;a href="https://yotei.win/blog/date-formats-day-month-or-month-day-calendar-events" rel="noopener noreferrer"&gt;yotei.win&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"03/04/2026" is the third of April in most of the world and the fourth of March in the United States. A calendar has no way to know which one the sender meant, and neither does an app that reads a screenshot. Wrong dates are the most dangerous mistake a screenshot to calendar tool can make, because the event looks perfectly normal and sits in the wrong week.&lt;/p&gt;

&lt;p&gt;This guide lists the ways a date on a screen can be read wrongly, what the reference sources say about each, and the habits that catch the errors. I also describe one bug I fixed in Yotei, because it shows the problem in practice.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure.&lt;/strong&gt; I made Yotei, a screenshot to calendar app. The advice below applies to any app, or to typing the event yourself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Numeric dates have three orders in use around the world: day-month-year, month-day-year and year-month-day.&lt;/li&gt;
&lt;li&gt;Only the year-first form, as in 2026-04-03, cannot be misread, which is why standards use it.&lt;/li&gt;
&lt;li&gt;Time zone abbreviations are no safer. "CST" can mean three different zones.&lt;/li&gt;
&lt;li&gt;Relative dates such as "next Friday" depend on the day the message was sent.&lt;/li&gt;
&lt;li&gt;Whatever tool you use, read the weekday and the date together before you confirm.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Three date orders in daily use
&lt;/h2&gt;

&lt;p&gt;Wikipedia's article on date formats by country describes three all-numeric orders: day-month-year (DMY), month-day-year (MDY) and year-month-day (YMD). In its country table and map, DMY is by far the most common, across Europe, Africa, Latin America and most of Asia and the Middle East. MDY is the form of the United States and a few territories, and it appears as one of several orders in Canada, Ghana, Kenya, the Philippines and some others. YMD is used in places such as China, Japan, South Korea and Bhutan. Several countries use more than one order in daily life.&lt;/p&gt;

&lt;p&gt;The result is that any date where both the first and second numbers are 12 or below is ambiguous when written as digits. 03/04/2026 and 07/08/2026 can each be two different days. A date like 25/04/2026 is only valid as day-month, which helps a reader, but only on that one date.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters for you:&lt;/strong&gt; a message from a colleague in another country, a booking confirmation from a US company and a school letter from your own country can all use different orders, and they can all land on the same screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one order that cannot be misread
&lt;/h2&gt;

&lt;p&gt;ISO 8601 writes dates as year-month-day, for example 2026-04-03. Wikipedia notes that it is meant to "harmonise these formats and ensure accuracy in all situations", that many countries have adopted it as their sole official date format, and that Canada's government recommends it for all-numeric dates. It reads the same everywhere because no real month number is above 12 and no year starts with a zero.&lt;/p&gt;

&lt;p&gt;If you send dates to other people, write them as "Thu 3 Apr 2026" or as 2026-04-03. If you are the one reading, convert the date to words in your head before you trust it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Time zone abbreviations are not safer
&lt;/h2&gt;

&lt;p&gt;People often add a zone to avoid confusion, then use an abbreviation that is itself ambiguous. Wikipedia's list of time zone abbreviations gives "CST" as its example: China Standard Time (UTC+08:00), Cuba Standard Time (UTC-05:00) and Central Standard Time in North America (UTC-06:00). "IST" can be Indian Standard Time (UTC+05:30), Irish Standard Time (UTC+01:00) or Israel Standard Time (UTC+02:00). The same article states that these abbreviations "are not part of the international time and date standard ISO 8601".&lt;/p&gt;

&lt;p&gt;A city name such as "Europe/Amsterdam" or an offset such as "UTC+1" leaves no room for doubt. There is more in &lt;a href="https://yotei.win/blog/calendar-time-zones-explained" rel="noopener noreferrer"&gt;calendar time zones explained&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Next Friday" and the other relative dates
&lt;/h2&gt;

&lt;p&gt;Messages are full of dates with no number in them: "tomorrow at 3", "this Thursday", "next Friday". Their meaning depends on the day the message was sent, which is often not visible in a screenshot. There is also a human ambiguity. On a Monday, some people mean the coming Friday by "next Friday" and others mean the Friday of the following week.&lt;/p&gt;

&lt;p&gt;This was a real bug in Yotei. An early version resolved "next Friday" to a Saturday: the AI that reads the screenshot was working out weekdays itself, with no reference to check against. The fix is to give it the current weekday and a table of the next 14 days with every request, and to tell it to use that table for words like "Friday", "next Friday" or "tomorrow" instead of calculating. In a check on Monday 2 November 2026, "next Friday" then resolved to 6 November. That reads the phrase as the coming Friday, which is one of the two things people mean by it, so the review screen shows the resolved date and you can change it if you meant the week after. A tool that hides the resolved date from you takes that choice away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other traps worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;12-hour and 24-hour time.&lt;/strong&gt; "7:00" could be morning or evening unless "am", "pm" or a 24-hour form is shown. Screenshots often crop that part.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two-digit years.&lt;/strong&gt; "5/6/27" can be read three ways. The year is usually 2027, but not every system agrees.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ranges across midnight or across months.&lt;/strong&gt; "Fri 31 Jan to Mon 3 Feb" is one event over four days, not two.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dates in other languages.&lt;/strong&gt; Month names change, and so does the order of day and month in a sentence. A reader that works well in English can slip in another language.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Habits that catch the mistakes
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read the weekday with the date.&lt;/strong&gt; If the message says "Thursday 4 March" and your calendar shows 4 March as a Wednesday, one of them is wrong. This single check catches most day-month swaps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look at the sender's country.&lt;/strong&gt; It tells you the likely date order and the likely time zone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirm the zone for anything cross-border.&lt;/strong&gt; Ask for a city or an offset, not an abbreviation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never skip the review step.&lt;/strong&gt; Choose tools that show the result before it is saved, and use that screen. &lt;a href="https://yotei.win/blog/editable-event-extraction" rel="noopener noreferrer"&gt;Why you should always review events&lt;/a&gt; explains what to look at.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write dates clearly yourself.&lt;/strong&gt; "Thu 12 Nov, 14:00 CET" is hard to misread.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How I made this guide
&lt;/h2&gt;

&lt;p&gt;The facts about date orders and time zone abbreviations come from two Wikipedia articles, "Date format by country" and "List of time zone abbreviations", read on 2 November 2026. Wikipedia is a secondary source, and the first article's country table was cut off when I read it, so I describe the pattern and do not give counts. The "next Friday" example comes from Yotei's own commit history and a live check on that date after the fix. I did not run a study of how often readers get dates wrong, and I will not claim one. I used no affiliate links. If something here is wrong, email &lt;a href="mailto:support@yotei.win"&gt;support@yotei.win&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is 03/04/2026 the 3rd of April or the 4th of March?
&lt;/h3&gt;

&lt;p&gt;It depends on the country. Most places read it as 3 April (day first). The United States reads it as 4 March (month first). Without context, it cannot be known from the digits.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which date format is the safest to write?
&lt;/h3&gt;

&lt;p&gt;The ISO 8601 order, year-month-day, such as 2026-04-03, or a form with the month in words, such as 3 Apr 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are time zone abbreviations like CST and IST reliable?
&lt;/h3&gt;

&lt;p&gt;No. CST can mean China, Cuba or North American Central time, and IST can mean India, Ireland or Israel. Use a city or a UTC offset.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do screenshot to calendar apps handle "next Friday"?
&lt;/h3&gt;

&lt;p&gt;They have to know today's date and decide what the phrase means. Yotei is given the current weekday and the next 14 days and shows you the resolved date before it saves anything. Check any app's result the same way.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the quickest way to catch a wrong date?
&lt;/h3&gt;

&lt;p&gt;Compare the weekday in the message with the weekday your calendar shows for that date. If they differ, the day and month were probably swapped.&lt;/p&gt;

</description>
      <category>calendar</category>
      <category>productivity</category>
      <category>webdev</category>
      <category>ux</category>
    </item>
    <item>
      <title>How an Office Assistant Can Add Meetings to Outlook Faster</title>
      <dc:creator>Omar Salloum</dc:creator>
      <pubDate>Sun, 01 Nov 2026 01:46:37 +0000</pubDate>
      <link>https://dev.to/omarsalloum/how-an-office-assistant-can-add-meetings-to-outlook-faster-224d</link>
      <guid>https://dev.to/omarsalloum/how-an-office-assistant-can-add-meetings-to-outlook-faster-224d</guid>
      <description>&lt;p&gt;&lt;em&gt;I made Yotei, a Windows and Mac app that is mentioned in this guide. Originally published at &lt;a href="https://yotei.win/blog/office-assistant-add-meetings-to-outlook" rel="noopener noreferrer"&gt;yotei.win&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Meeting details reach an office assistant in every shape: an email thread, a chat message, a forwarded PDF, a screenshot from a client. The manager's calendar is only as good as how quickly and accurately those details are entered. These habits cut the time and the errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use one consistent event format: title, place or link, who attends and a short note.&lt;/li&gt;
&lt;li&gt;Put the time zone in the event whenever a client is abroad.&lt;/li&gt;
&lt;li&gt;Add travel time and preparation as their own entries.&lt;/li&gt;
&lt;li&gt;Capture details from the screen instead of retyping them, then check each event.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. A consistent format
&lt;/h2&gt;

&lt;p&gt;Name events the same way every time, for example "Client name: topic". Put the room or video link in the location field, and the agenda or contact in the notes. A calendar that is consistent is easy to scan on a phone.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Time zones for clients abroad
&lt;/h2&gt;

&lt;p&gt;Outlook can show a time zone on the event. When a message says "10:00" without a zone, ask. Our guide to &lt;a href="https://yotei.win/blog/calendar-time-zones-explained" rel="noopener noreferrer"&gt;calendar time zones&lt;/a&gt; shows how.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Buffers around meetings
&lt;/h2&gt;

&lt;p&gt;Add travel and preparation as separate entries, and leave space between back-to-back meetings. It is easier to remove a buffer than to find time that does not exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Share the calendar properly
&lt;/h2&gt;

&lt;p&gt;Outlook lets a manager share their calendar with an assistant. Agree on whether you may edit it and who sees private entries, so changes are not blocked by permissions at the worst moment.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Stop retyping details
&lt;/h2&gt;

&lt;p&gt;The slowest part is copying details from a message into an event. Capturing them from the screen is faster:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the email, chat or PDF with the meeting details.&lt;/li&gt;
&lt;li&gt;Press the Yotei shortcut and drag over the details.&lt;/li&gt;
&lt;li&gt;Check the title, date, time and place, and fix anything that is wrong.&lt;/li&gt;
&lt;li&gt;Confirm, and the event is added to Outlook.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your whole team does this, a team plan gives each person their own account and events. See &lt;a href="https://yotei.win/outlook-calendar-from-screen" rel="noopener noreferrer"&gt;creating Outlook events from your screen&lt;/a&gt; and &lt;a href="https://yotei.win/teams" rel="noopener noreferrer"&gt;Yotei for teams&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Yotei deletes the screenshot as soon as you confirm the event, or within 48 hours if you do not. The AI service that reads the screenshot may be outside the EEA and is only used after you consent. Details are in the &lt;a href="https://yotei.win/privacy" rel="noopener noreferrer"&gt;privacy policy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How can I add several meetings to Outlook at once?
&lt;/h3&gt;

&lt;p&gt;If the details are on your screen, a tool such as Yotei can read several events from one selection, let you edit each, and add them together.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should I check before saving a meeting?
&lt;/h3&gt;

&lt;p&gt;The date and year, the time and its time zone, the location or video link, and whether the event duplicates one already in the calendar.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can an assistant edit the manager's Outlook calendar?
&lt;/h3&gt;

&lt;p&gt;Yes, if the manager shares it with edit rights. Agree on the permissions in advance.&lt;/p&gt;




&lt;p&gt;Yotei is made by KD Digital in the Netherlands. Product details, pricing and more guides: &lt;a href="https://yotei.win/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yotei.win&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>outlook</category>
      <category>productivity</category>
      <category>career</category>
      <category>calendar</category>
    </item>
    <item>
      <title>How to Add WhatsApp Messages to Your Calendar</title>
      <dc:creator>Omar Salloum</dc:creator>
      <pubDate>Sun, 01 Nov 2026 01:45:31 +0000</pubDate>
      <link>https://dev.to/omarsalloum/how-to-add-whatsapp-messages-to-your-calendar-56h0</link>
      <guid>https://dev.to/omarsalloum/how-to-add-whatsapp-messages-to-your-calendar-56h0</guid>
      <description>&lt;p&gt;&lt;em&gt;I made Yotei, a Windows and Mac app that is mentioned in this guide. Originally published at &lt;a href="https://yotei.win/blog/add-whatsapp-events-to-calendar" rel="noopener noreferrer"&gt;yotei.win&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;WhatsApp is where plans get made and then forgotten: a dentist time, a school trip, a client who writes "Tuesday at 10?". WhatsApp has no calendar of its own, so the date stays in the chat until someone copies it out. Here are four ways to get it into Google Calendar or Outlook, from simplest to quickest.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Write the full date, time and place back in the chat, so the message itself is clear.&lt;/li&gt;
&lt;li&gt;Copy the line into a new calendar event: reliable, but you retype the details.&lt;/li&gt;
&lt;li&gt;For several messages or on a computer, capture them from the screen and review the result before saving.&lt;/li&gt;
&lt;li&gt;Always check the date, the year and the time zone before you save.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Confirm it in writing first
&lt;/h2&gt;

&lt;p&gt;"Thursday at 3" depends on who sent it and when. Reply with the full version, for example "Thu 12 Nov, 15:00, at the clinic". That reply is what you add to the calendar, and it also stops misunderstandings.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Copy the message into a new event
&lt;/h2&gt;

&lt;p&gt;Select the text, copy it, open your calendar and paste it into the title or notes of a new event, then set the date and time by hand. It works everywhere and costs nothing, but it is slow when plans arrive all day.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Use WhatsApp Web on a computer and capture the screen
&lt;/h2&gt;

&lt;p&gt;If you use WhatsApp Web or the desktop app, the messages are on your screen, and a screenshot tool can read them. With Yotei you press the shortcut, drag a box over the messages, and it lists the events it found for you to edit and confirm. This is useful when a parent group sends several dates at once or a client lists three appointments in one message.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the chat on your computer.&lt;/li&gt;
&lt;li&gt;Press the Yotei shortcut and drag over the message.&lt;/li&gt;
&lt;li&gt;Check the title, date, time and place, and untick events you do not need.&lt;/li&gt;
&lt;li&gt;Confirm, and the events go into your Google or Outlook calendar.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  4. Ask the sender for an invitation
&lt;/h2&gt;

&lt;p&gt;For anything with more than two people, ask them to send a calendar invitation. It adds the event to everyone's calendar and updates it if the time changes.&lt;/p&gt;

&lt;p&gt;Yotei deletes the screenshot as soon as you confirm the event, or within 48 hours if you do not. The AI service that reads the screenshot may be outside the EEA and is only used after you consent. Details are in the &lt;a href="https://yotei.win/privacy" rel="noopener noreferrer"&gt;privacy policy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistakes to avoid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Relative dates.&lt;/strong&gt; "Tomorrow" and "next Friday" mean something different a day later. Check the date the message was sent. See &lt;a href="https://yotei.win/blog/calendar-time-zones-explained" rel="noopener noreferrer"&gt;calendar time zones explained&lt;/a&gt; for time zone traps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing year.&lt;/strong&gt; A message without a year can be saved in the wrong one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duplicates.&lt;/strong&gt; If the same plan is mentioned twice in the chat, add it once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For school messages in particular, see &lt;a href="https://yotei.win/blog/add-school-newsletter-dates-to-calendar" rel="noopener noreferrer"&gt;how to add school newsletter dates to your calendar&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can WhatsApp add events to my calendar automatically?
&lt;/h3&gt;

&lt;p&gt;WhatsApp does not create calendar events from messages by itself. You copy the details, or use a tool that reads them from your screen.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I add a WhatsApp message to my Outlook calendar?
&lt;/h3&gt;

&lt;p&gt;Copy it into a new Outlook event, or capture it from the screen with a tool such as Yotei, which adds the confirmed event to Outlook.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does this work for group chats?
&lt;/h3&gt;

&lt;p&gt;Yes. If the messages are on your screen, you can select them and add several events at once, after you review them.&lt;/p&gt;




&lt;p&gt;Yotei is made by KD Digital in the Netherlands. Product details, pricing and more guides: &lt;a href="https://yotei.win/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yotei.win&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>whatsapp</category>
      <category>calendar</category>
      <category>productivity</category>
      <category>outlook</category>
    </item>
  </channel>
</rss>
