1. Home
  2. Appointments & Scheduling
  3. Appointment Management
  4. How to Create Great SMS Text reminders with Short-codes for Appointments

How to Create Great SMS Text reminders with Short-codes for Appointments

For reminders to be effective you want them to include as much pertinent and accurate information about the appointment to be included as possible. You also don’t want to sound too formal. Something that looks like it’s actually typed by the business owner or staff member usually gets the best response… versus something that sounds like it came from a computer. 

Example:

Hi {{ booking.contact.first_name }} Just Confirming our appointment For Tomorrow morning looking forward to seeing you – {{ business }}

Friendly? Yes!.
Informal? Yes!
Pertinent & Relevant? Yes!

Some important short codes for you to remember:

{{ booking.contact.first_name }} 
{{ business }} 
{{ booking.service.name }}

You can get more specific and put the exact dates in or star times:

{{ startTime |date:"l"}},
{{ startTime |date:"h:i a"}}

or add an end time like this:

{{ endTime |date:"h:i a"}}

How do the date short codes work?
As seen above, dates and times use this format:
{{ value|date:” “ }}. Inside the quotation marks you will place the respective characters, in order, that correspond to the output you are looking for:

Character
Description
Example output
Day
d
Day of the month, 2 digits with leading zeros.
'01' to '31'
j
Day of the month without leading zeros.
'1' to '31'
D
Day of the week, textual, 3 letters.
'Fri'
l
Day of the week, textual, long.
'Friday'
S
English ordinal suffix for day of the month, 2 characters.
'st''nd''rd' or 'th'
w
Day of the week, digits without leading zeros.
'0' (Sunday) to '6' (Saturday)
z
Day of the year.
0 to 365
Week
W
ISO-8601 week number of year, with weeks starting on Monday.
153
Month
m
Month, 2 digits with leading zeros.
'01' to '12'
n
Month without leading zeros.
'1' to '12'
M
Month, textual, 3 letters.
'Jan'
b
Month, textual, 3 letters, lowercase.
'jan'
E
Month, locale specific alternative representation usually used for long date representation.
'listopada' (for Polish locale, as opposed to 'Listopad')
F
Month, textual, long.
'January'
N
Month abbreviation in Associated Press style. Proprietary extension.
'Jan.''Feb.''March''May'
t
Number of days in the given month.
28 to 31
Year
y
Year, 2 digits.
'99'
Y
Year, 4 digits.
'1999'
L
Boolean for whether it’s a leap year.
True or False
o
ISO-8601 week-numbering year, corresponding to the ISO-8601 week number (W) which uses leap weeks. See Y for the more common year format.
'1999'
Time
g
Hour, 12-hour format without leading zeros.
'1' to '12'
G
Hour, 24-hour format without leading zeros.
'0' to '23'
h
Hour, 12-hour format.
'01' to '12'
H
Hour, 24-hour format.
'00' to '23'
i
Minutes.
'00' to '59'
s
Seconds, 2 digits with leading zeros.
'00' to '59'
u
Microseconds.
000000 to 999999
a
'a.m.' or 'p.m.' (Note that this is slightly different than PHP’s output, because this includes periods to match Associated Press style.)
'a.m.'
A
'AM' or 'PM'.
'AM'
f
Time, in 12-hour hours and minutes, with minutes left off if they’re zero. Proprietary extension.
'1''1:30'
P
Time, in 12-hour hours, minutes and ‘a.m.’/’p.m.’, with minutes left off if they’re zero and the special-case strings ‘midnight’ and ‘noon’ if appropriate. Proprietary extension.
'1 a.m.''1:30 p.m.''midnight''noon''12:30 p.m.'
Timezone
e
Timezone name. Could be in any format, or might return an empty string, depending on the datetime.
'''GMT''-500''US/Eastern', etc.
I
Daylight Savings Time, whether it’s in effect or not.
'1' or '0'
O
Difference to Greenwich time in hours.
'+0200'
T
Time zone of this machine.
'EST''MDT'
Z
Time zone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
-43200 to 43200
Date/Time
c
ISO 8601 format. (Note: unlike others formatters, such as “Z”, “O” or “r”, the “c” formatter will not add timezone offset if value is a naive datetime (see datetime.tzinfo).
2008-01-02T10:30:00.000123+02:00, or 2008-01-02T10:30:00.000123 if the datetime is naive
r
RFC 5322 formatted date.
'Thu, 21 Dec 2000 16:01:07 +0200'
U
Seconds since the Unix Epoch (January 1 1970 00:00:00 UTC).

For example: {{ value|date:”D d M Y” }}

Using this above for an appointment on Tuesday May 28, 2019, the output will be the string ‘Tues 28 May 2019’.

Updated on November 11, 2019

Was this article helpful?

Related Articles