Outlook email templates with a date picker
In this article
If you want to have a pop-up calendar in your template, this is how:
In the template you’re creating or editing, place the cursor where you’d like to add a date picker, and then select the Insert macro button on the template editor toolbar.

Select What to enter (WTE).
The What to enter dialog appears.
On the General tab:
- Select Date.
- Enter the field name.
- Select a date format.
- Select a language. If the language you need isn’t listed, visit the Supported locale codes page on the Microsoft Learn website.

On the Calculate tab, you can shift the current date forward or backward.

On the Advanced tab, you can specify:
- What value to insert into your email message if the result returned by the macro is not empty.
- What value to insert into your email message if the result returned by the macro is empty.
- What regular expression the value that will be entered or selected via the macro dialog must match.
When you’re finished, select OK.
In your template, a date picker shown with a WhatToEnter macro placeholder will appear. Select Save.

When you insert the template with a date picker into an email message, a pop-up dialog appears. You can keep the suggested date or pick another one from the calendar.

To change your date format preference when selecting another date from the calendar, select Format.

When you’re ready, select OK.