Change Squarespace date format

Squarespace supports displaying blog posts Published date on various places: Blog list, Blog post or Summary block. While Squarespace allows changing localization, the date format in blog posts varies and can be incorrect. There's no built-in method to customize it universally, Beyondspace provided a method to unify the publication date format across your site and support to change the date format that you need.

At the moment, only the Squarespace blog date format can be altered using this Squarespace plugin, we will support event date format in the later phase.

OP can be found on Squarespace forum

The script supports multilingual websites out of the box, Weglot website will not be supported as Weglot provides its own mechanism for converting date format based on selected locale. Note that to auto-display different locales you have to choose Localized format, as shown in the table below. For example:

  • /es/home: will display spanish locale

  • /en/home: will display english locale

Below tables provide explanation for the blog date format tokens and some common localized formats (the format that will generate the correct date output for your current locale)

Date format tokens

FormatOutputDescription
YY18Two-digit year
YYYY2018Four-digit year
M1-12The month, beginning at 1
MM01-12The month, 2-digits
MMMJan-DecThe abbreviated month name
MMMMJanuary-DecemberThe full month name
D1-31The day of the month
DD01-31The day of the month, 2-digits
d0-6The day of the week, with Sunday as 0
ddSu-SaThe min name of the day of the week
dddSun-SatThe short name of the day of the week
ddddSunday-SaturdayThe name of the day of the week
H0-23The hour
HH00-23The hour, 2-digits
h1-12The hour, 12-hour clock
hh01-12The hour, 12-hour clock, 2-digits
m0-59The minute
mm00-59The minute, 2-digits
s0-59The second
ss00-59The second, 2-digits
SSS000-999The millisecond, 3-digits
Z+05:00The offset from UTC, ±HH:mm
ZZ+0500The offset from UTC, ±HHmm
AAM PM
aam pm

Localized format

FormatEnglish LocaleSample Output
LTh:mm A8:02 PM
LTSh:mm:ss A8:02:18 PM
LMM/DD/YYYY08/16/2018
LLMMMM D, YYYYAugust 16, 2018
LLLMMMM D, YYYY h:mm AAugust 16, 2018 8:02 PM
LLLLdddd, MMMM D, YYYY h:mm AThursday, August 16, 2018 8:02 PM