Jump to content

[FreeShare] Date display format options on all pages

Recommended Posts

5 hours ago, mazmac said:

It worked, but now my resume blocks have the SPANISH month, instead of the number, that resolves all, bur work fine with both blogs!

You can select different date format in the dropdown, it will display preview of the output so you can choose among them

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
On 12/31/2021 at 2:15 PM, Glenn Hubbers said:

I tried this on my site.
While it does change the format (I prefer yyyy-mm-dd) the date on the index is one day off of the date on the blog post.
Example: on the blog index I have a post with the date 2019-12-31 and when you click that post it comes up with the day 2019-12-30

I'm also having a similar issue, has anyone ever figured this out?

 

Link to comment
14 hours ago, benjiewilhelm said:

I'm also having a similar issue, has anyone ever figured this out?

 

Have you try this

https://forum.squarespace.com/topic/207841-freeshare-date-display-format-options-on-all-pages/?do=findComment&comment=630658

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
5 hours ago, tci_ca said:

After trying on some different codes to alter the date in the blog post, this code has worked flawlessly! 

Glad to hear it!

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
  • 3 weeks later...
2 hours ago, Jean-Lou said:

Hi @Beyondspace Where can I find your live editor for your snippet? I can also see a png and the link goes to a page on your site but I can't see any code editor. I tried copying it by hand but the code doesn't seem to work for me.

Thanks for your help!
 

What is your site url please?

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
On 7/1/2023 at 1:10 AM, Jean-Lou said:

it is not accessible 

image.thumb.png.552ef15fd1cacbee184f13412232cea3.png

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, Jean-Lou said:

For some reason, the date is not showing up on the blog pages anymore. Thanks for your help.

It looks fine to me
image.thumb.png.5149630d653efc93f137f49db3b8dc05.png

image.thumb.png.00581ae332be8b22848c9baf827c4d42.png

btw, there is update on the script to better support clickthrough link in posts, you may want to grab the latest snippet from the playground website and update on your site

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
  • 3 weeks later...
On 5/12/2023 at 9:04 PM, Beyondspace said:

CALL FOR TESTING 🤩

The Beyondspace date-format snippet has been upgraded, please replace your given snippet with the new one from this URL below

 🌍  Live editor

image.thumb.png.ec506e73a9747eadd7d8b0b02444920e.png

🌍 outputFormat supports different kinds of format based on the date string token

- MM/DD/YYYY

- DD/MM/YYYY

- MMM D, YYYY

 🌍 Multilingual website is supported out of the box, check for the support locales value here, for example

- www.ojala.mx/es/espanol

- www.ojala.mx/en/english

- www.ojala.mx/en/ojala-en

- www.ojala.mx/es/ojala-es

 🌍  Only those date format can support locales. For example instead putting `MM/DD/YYYY`, place `LLL` so it can be auto-converted into different languages

Format English Locale Sample Output
L MM/DD/YYYY 08/16/2018
LL MMMM D, YYYY August 16, 2018
l M/D/YYYY 8/16/2018
ll MMM D, YYYY Aug 16, 2018

 🌍  Weglot website is not supported as Weglot has its own mechanism for date time localization, for example

cc: @mazmac @ocam @yshahi @AdamR @JoelleM @ChiroUp @g-souza @Creatingspaces

 

Yay! Thank you, this solution works!

Link to comment
  • 3 weeks later...
  • 2 weeks later...
On 8/8/2023 at 1:44 AM, tonyflores said:

@Beyondspace is there a way to get this to work with passthrough links? Date's aren't not displaying when I toggle that on.

I see you, it is because the passthrough replace the actual blog URL with the link, therefore the code can not fetch the date, do you mind to share the current site URL to have a look?

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
On 8/11/2023 at 11:19 AM, Popsonic said:

Any idea if this works with 7.0 sites or not? I tried to use this for Japanese support on blog posts (news) and it doesn't do anything at all.

Could you share your site URL

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
  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...

@Beyondspace Hi, thank you for sharing this! However the live editor doesn't seem to work anymore. I last tried it yesterday I believe, and it was working. But it no longer seems to be working.

I put the code into site wide footer code injection.

https://scarlet-parrotfish-tp2h.squarespace.com/blog-summary-block

password: password

Here is my test site. As I am trying to debug my current site, thought I'd test this on a blank canvas, unfortunately the date format is not changing. Either in blog or summary block.

Any ideas? It's either my own doing or SS had an update ... Much appreciated.

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
On 10/30/2023 at 10:15 PM, melody495 said:

@Beyondspace Hi, thank you for sharing this! However the live editor doesn't seem to work anymore. I last tried it yesterday I believe, and it was working. But it no longer seems to be working.

I put the code into site wide footer code injection.

https://scarlet-parrotfish-tp2h.squarespace.com/blog-summary-block

password: password

Here is my test site. As I am trying to debug my current site, thought I'd test this on a blank canvas, unfortunately the date format is not changing. Either in blog or summary block.

Any ideas? It's either my own doing or SS had an update ... Much appreciated.

Password is incorrect...

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
On 9/12/2023 at 2:24 AM, tonyflores said:

Hi following up to see if you had a chance to look at this @Beyondspace

I saw 2 date format there on the page, which one you need to convert?

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
On 11/2/2023 at 11:38 AM, Beyondspace said:

Password is incorrect...

So sorry! It's correct now

https://scarlet-parrotfish-tp2h.squarespace.com/blog-summary-block

password: password

I've put the code from the website generator in site wide footer.

Thanks

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
47 minutes ago, melody495 said:

So sorry! It's correct now

https://scarlet-parrotfish-tp2h.squarespace.com/blog-summary-block

password: password

I've put the code from the website generator in site wide footer.

Thanks

I checked the page and see the correct date format?

image.thumb.png.dfca092cb82e24cb9d90f6f159d9a76c.png

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.