Change Squarespace date format universally

Unified Squarespace date format

Unified Squarespace date format

dddd, D MMMM YYYY
Saturday, 15 March 2025
MMM DD, YYYY
Mar 15, 2025
YYYY-MM-DD
2025-03-15
MMM DD, YYYY
Mar 15, 2025
DD/MM/YYYY
15/03/2025
MM/DD/YYYY
03/15/2025
dddd, D MMMM YYYY | hh:mm A z
Saturday, 15 March 2025 | 08:17 PM UTC
YYYY-MM-DD HH:mm:ss
2025-03-15 20:17:18
YYYY-MM-DD HH:mm:ss z
2025-03-15 20:17:18 UTC
L -- Localized Format
03/15/2025
LL -- Localized Format
March 15, 2025
af
Afrikaans
am
Amharic
ar-dz
Arabic (Algeria)
ar-iq
Arabic (Iraq)
ar-kw
Arabic (Kuwait)
ar-ly
Arabic (Lybia)
ar-ma
Arabic (Morocco)
ar-sa
Arabic (Saudi Arabia)
ar-tn
Arabic (Tunisia)
ar
Arabic
az
Azerbaijani
be
Belarusian
bg
Bulgarian
bi
Bislama
bm
Bambara
bn-bd
Bengali (Bangladesh)
bn
Bengali
bo
Tibetan
br
Breton
bs
Bosnian
ca
Catalan
cs
Czech
cv
Chuvash
cy
Welsh
de-at
German (Austria)
da
Danish
de-ch
German (Switzerland)
de
German
dv
Maldivian
el
Greek
en-au
English (Australia)
en-ca
English (Canada)
en-gb
English (United Kingdom)
en-ie
English (Ireland)
en-il
English (Israel)
en-in
English (India)
en-nz
English (New Zealand)
en-sg
English (Singapore)
en-tt
English (Trinidad & Tobago)
eo
Esperanto
en
English
es-do
Spanish (Dominican Republic)
es-mx
Spanish (Mexico)
es-pr
Spanish (Puerto Rico)
es-us
Spanish (United States)
et
Estonian
es
Spanish
eu
Basque
fa
Persian
fo
Faroese
fi
Finnish
fr-ca
French (Canada)
fr-ch
French (Switzerland)
fr
French
fy
Frisian
ga
Irish or Irish Gaelic
gd
Scottish Gaelic
gom-latn
Konkani Latin script
gl
Galician
gu
Gujarati
he
Hebrew
hi
Hindi
hr
Croatian
hu
Hungarian
ht
Haitian Creole (Haiti)
hy-am
Armenian
id
Indonesian
is
Icelandic
it-ch
Italian (Switzerland)
it
Italian
ja
Japanese
jv
Javanese
ka
Georgian
kk
Kazakh
km
Cambodian
kn
Kannada
ko
Korean
ku
Kurdish
ky
Kyrgyz
lb
Luxembourgish
lo
Lao
lt
Lithuanian
lv
Latvian
me
Montenegrin
mi
Maori
mk
Macedonian
ml
Malayalam
mn
Mongolian
mr
Marathi
ms-my
Malay
ms
Malay
mt
Maltese (Malta)
my
Burmese
nb
Norwegian Bokmål
ne
Nepalese
nl-be
Dutch (Belgium)
nl
Dutch
pl
Polish
pt-br
Portuguese (Brazil)
pt
Portuguese
rn
Kirundi
ro
Romanian
ru
Russian
rw
Kinyarwanda (Rwanda)
sd
Sindhi
se
Northern Sami
si
Sinhalese
sk
Slovak
sl
Slovenian
sq
Albanian
sr-cyrl
Serbian Cyrillic
ss
siSwati
sv-fi
Finland Swedish
sr
Serbian
sv
Swedish
sw
Swahili
ta
Tamil
te
Telugu
tet
Tetun Dili (East Timor)
tg
Tajik
th
Thai
tk
Turkmen
tl-ph
Tagalog (Philippines)
tlh
Klingon
tr
Turkish
tzl
Talossan
tzm-latn
Central Atlas Tamazight Latin
tzm
Central Atlas Tamazight
ug-cn
Uyghur (China)
uk
Ukrainian
ur
Urdu
uz-latn
Uzbek Latin
uz
Uzbek
vi
Vietnamese
x-pseudo
Pseudo
yo
Yoruba Nigeria
zh-cn
Chinese (China)
zh-hk
Chinese (Hong Kong)
zh-tw
Chinese (Taiwan)
zh
Chinese
oc-lnc
Occitan, lengadocian dialecte
nn
Nynorsk
pa-in
Punjabi (India)
Use Timestamp
Try to get the timestamp value of publish date, recommended for displaying date format with time
<!-- sqs:beyondspace--date-format -->
<script src="https://cdn.jsdelivr.net/combine/gh/csuwildcat/SelectorListener/selector-listeners.min.js,npm/dayjs-with-plugins@1.0.3/dist/dayjs-with-plugins.min.js,gh/BeyondspaceStudio/beyondspace-snippets@0.0.61/src/date-format/index.min.js" data-widget-config='{"outputFormat":"DD/MM/YYYY","defaultLocale":"en","useTimestamp":false}' async></script>
<!-- /sqs:beyondspace--date-format -->
Copy Code

Attribution:

Did the snippet works for you? Spread it with the world and earn discount!

Free plugin for Squarespace date format unification

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

How to install

Follow these simple steps to update the Squarespace date format across your site

  1. Choose the date format you need.

  2. Copy the generated code snippet.

  3. Paste it into your Footer injection.

Date format tokens

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
Previous
Previous

Publication Datepicker

Next
Next

Ground Control