WebSite X5Help Center

 
Roxanne T.
Roxanne T.
User

How do I change the date format from dd/mm/yy to (mm/dd/yy)?  en

Autor: Roxanne T.
Visitado 259, Seguidores 1, Compartilhado 0  

Is there a location in the settings where I can change the date format used throughout the site? It current is in the European style.

Thanks!

Publicado em
9 RESPOSTAS - 1 ÚTIL
Daniel W.
Daniel W.
User
Usuário do mês DEUsuário do mês EN

A little more information would be helpful to offer a solution.

Ler mais
Publicado em de Daniel W.
Daniel W.
Daniel W.
User
Usuário do mês DEUsuário do mês EN

For the contact form, the date format is set here.

-----

Ler mais
Publicado em de Daniel W.
Roxanne T.
Roxanne T.
User
Autor

Thank you, Daniel. Specifically, the date format on the Main Blog Page. 

Ler mais
Publicado em de Roxanne T.
Daniel W.
Daniel W.
User
Usuário do mês DEUsuário do mês EN

So far I haven't been able to find a way to change the date format for blog posts in WebSiteX5.

When I searched on Google I found that this question was asked two years ago and could not be answered because the options were obviously not available.

Perhaps Incomedia staff will respond (during office hours in Italy Monday to Friday) whether this option is available or whether they plan to add it in an update.

Ler mais
Publicado em de Daniel W.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

x Roxanne T., ... (It > En) ... ... maybe(! some of my inventions with EXTRA dynamic JS code could work...
... if you're interested, post the LINK to your blog, and then I'll come back here, ...otherwise ignore my message...

.

ciao

.

Ler mais
Publicado em de  ‪ KolAsim ‪ ‪
Daniel W.
Daniel W.
User
Usuário do mês DEUsuário do mês EN

@KolAsim: Auf der Blog-Hauptseite gibt es im Quelltext diese Stelle ...

-----

<span class="imBlogPostCardDate">29/11/2023</span>

-----

... hier müsste man eigentlich das Datum auslesen, aufteilen und anders wieder zusammensetzen können, um dann das neu formatierte Datum an die Stelle des bisherigen Datums zu setzen.

Bei der Google-Suche habe ich etliche Seiten mit Javascript-Code für diesen Zweck gefunden, also Austausch und Neuformatierung von Inhalten, und ich habe ihn an "span class" des Blogs angepasst, aber es hat nicht funktioniert - vermutlich weil ich nur sehr geringe Javascript-Kenntnisse habe.

Ler mais
Publicado em de Daniel W.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

x Daniel W.:

<span class="imBlogPostCardDate">29/11/2023</span>
<script>
/** -- cambio formato stringa data by KolAsim -- **/
var strK = $(".imBlogPostCardDate").text().split("/");
var strK = strK[1]+"/"+strK[0]+"/"+strK[2];
$(".imBlogPostCardDate").text(strK);
</script>

x ( HTML-Codeobjekt )

Ler mais
Publicado em de  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... wie bereits erwähnt, ohne den echten LINK des Roxanne-Blogs kann ich mich nicht ausdrücken ...
...es kann verschiedene Arten von Blogs und Artikeln geben, und auf der Seite können sich verschiedene ähnliche Objekte befinden, jedoch mit Datumsangaben mit unterschiedlichen Werten...
...(!)... wenn Roxanne den LINK postet, kann ich mich auf den Beton verlassen und werde gerne hierher zurückkommen...(!)...

.

Ler mais
Publicado em de  ‪ KolAsim ‪ ‪
Daniel W.
Daniel W.
User
Usuário do mês DEUsuário do mês EN

Ich hatte gedacht, dass es einen allgemeinen Javascript-Code gibt, da alle Datumsangaben auf der Blog-Hauptseite das gleiche "span class" verwenden.

<span class="imBlogPostCardDate">29/11/2023</span>

<span class="imBlogPostCardDate">13/11/2023</span>

<span class="imBlogPostCardDate">3/11/2023</span>

<span class="imBlogPostCardDate">10/10/2023</span>

Wenn es individuell angepasst werden muss, dann muss die Fragestellerin einen Link nennen.

-----

Ler mais
Publicado em de Daniel W.