Guest Posted September 12, 2021 Share Posted September 12, 2021 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
paul2009 Posted September 13, 2021 Share Posted September 13, 2021 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've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to 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 is optional. Link to comment
Beyondspace Posted September 27, 2021 Share Posted September 27, 2021 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
Beyondspace Posted September 30, 2021 Share Posted September 30, 2021 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment