WebSite X5Help Center

 
Roxanne T.
Roxanne T.
User

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

Auteur : Roxanne T.
Visité 318, Followers 1, Partagé 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!

Posté le
9 RéPONSES - 1 UTILES
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois EN

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

Lire plus
Posté le de Daniel W.
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois EN

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

-----

Lire plus
Posté le de Daniel W.
Roxanne T.
Roxanne T.
User
Auteur

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

Lire plus
Posté le de Roxanne T.
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois 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.

Lire plus
Posté le de Daniel W.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois FRMeilleur utilisateur du mois PL

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

.

Lire plus
Posté le de  ‪ KolAsim ‪ ‪
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois 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.

Lire plus
Posté le de Daniel W.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois FRMeilleur utilisateur du mois PL

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 )

Lire plus
Posté le de  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois FRMeilleur utilisateur du mois PL

... 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...(!)...

.

Lire plus
Posté le de  ‪ KolAsim ‪ ‪
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois 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.

-----

Lire plus
Posté le de Daniel W.