Jump to content

Universal Date Format

Recommended Posts

Hi All,

I'm wanting to make all my posts' dates be in the same format. For the Summary blocks the date is in DD/MM/YYYY format, which is fine. But in other sections of my site dates appear with the month spelled out as Month DD, YYYY - which I prefer. 

Does anyone have code to make the date format universal throughout the site?

Thanks in advance!

Link to comment
  • Replies 3
  • Views 744
  • Created
  • Last Reply

Top Posters In This Topic

9 hours ago, chupacabrablog said:

I'm wanting to make all my posts' dates be in the same format.

Squarespace dates aren't standardised; they differ between blocks, pages and templates.

To help you, the community will need you to provide a working link to the site, plus details of the pages where dates are shown.

About me: I'm Paul. A SQSP User for 18 yrs, I joined Circle when it launched in 2016 and have been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing expertise and extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with a Squarespace Domain

Link to comment
  • 2 weeks later...
On 9/13/2021 at 5:50 AM, chupacabrablog said:

Hi All,

I'm wanting to make all my posts' dates be in the same format. For the Summary blocks the date is in DD/MM/YYYY format, which is fine. But in other sections of my site dates appear with the month spelled out as Month DD, YYYY - which I prefer. 

Does anyone have code to make the date format universal throughout the site?

Thanks in advance!

I made a small script for the issue, hope it hopes

In your case: "mm dd, yyyy" --> 02 25, 2021

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
8 hours ago, Sopi said:

I will share you two universal date format both are the correct-

1. YYYY-MM-DD

2. YYYYMMDD

#2 without seperator?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.