The event inside the code
A calendar entry in the iCalendar format (RFC 5545), the same format calendar apps use when they send each other invitations. For a birthday dinner from 7 pm to 11 pm on 14 March 2027, our generator writes:
BEGIN:VEVENT
SUMMARY:Priya's 30th birthday
DTSTART:20270314T190000
DTEND:20270314T230000
LOCATION:The Garden Café\, Pune
END:VEVENT
SUMMARY is the title. DTSTART and DTEND are the date, a T, then the time. The backslash before the comma in LOCATION is how iCalendar writes a comma, and calendars display it normally. A DESCRIPTION line is added if you fill in Details. Leave the end empty and the event lasts one hour.
That's 136 characters and a grid 49 squares wide, about twice the width of a plain link code. Every word in Details makes it bigger, so put the dress code and the parking notes on the invitation and keep the code to title, time and place.
Local time or a fixed time zone
This is the one setting that can put guests in the wrong place at the wrong hour, so it's worth a minute.
By default, the time is written with no time zone, as above. Calendars read that as local time wherever the phone is: 7 pm shows as 7 pm in Pune, London or New York. That's right for anything in person, because a guest flying in will be in Pune by then.
For an online event with people in several countries, switch on Lock to my time zone. The generator then converts the time to UTC and marks it with a Z. A 7 pm webinar set from India comes out as:
DTSTART:20270314T133000Z
DTEND:20270314T143000Z
Each phone converts 13:30 UTC back to its own local time, so a viewer in London sees 1:30 pm. If an in-person event shows up at an odd hour on someone's phone, a locked time zone is the first thing to check.
All-day events
All-day events are written as dates without times:
BEGIN:VEVENT
SUMMARY:Spring fair
DTSTART;VALUE=DATE:20270410
DTEND;VALUE=DATE:20270411
LOCATION:Town Hall
END:VEVENT
The end date is the day after the fair. The standard counts the end as exclusive, and calendars show a single-day event on 10 April.
iPhone, Android, and a fallback
Apple added event codes to the iPhone Camera in iOS 11: in its QR code talk, tapping the prompt "adds the event to your calendar and shows you the event details." Android is less consistent. Many camera apps and Google Lens offer to add the event; some only show the raw text.
If your guests are mostly on Android and you can't test, Google Calendar has a link format that opens a filled-in "add event" page, and you can put that link in a link QR code:
https://calendar.google.com/calendar/render?action=TEMPLATE&text=Spring%20fair&dates=20270410/20270411&location=Town%20Hall
It opens on any phone with a browser, but it needs a Google account to save and an internet connection to load. The event code on this page works offline and with any calendar app. For a wedding, where most guests will scan at home on Wi-Fi, either works; the wedding invitations guide covers placing it, and a location QR code for the venue makes a good partner on the same card.