WebSite X5Help Center

 
Domingos Costa
Domingos Costa
User

Automatic visualization on the Site of the date and time of recording/updating of the Project.  en

Auteur : Domingos Costa
Visité 1608, Followers 1, Partagé 0  

How can the date and time of recording/updating the project be automatically inserted in the Site? I can not find any MarketPlace utilities to do this.

Thanks

Posté le
3 RéPONSES - 2 UTILE
Domingos Costa
Domingos Costa
User
Auteur

PT - (Meu objetivo é que o navegador exiba a data/hora em que o site foi alterado/atualizado no servidor e que essa data/hora não possa ser alterada pelo navegador.
O meu interesse é que naveguem no Site e saber sempre a data/hora exata em que a página foi atualizada.)

Obrigado

----------------------------

EN - My goal is for the browser to display the date/time the site was changed/updated on the server and that this date/time can not be changed by the browser.
I'm interested in navigating the Site and knowing the exact date/time that the page was updated.

Thanks

(Sorry Portuguese to English by the Google)

Lire plus
Posté le de Domingos Costa
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois ESMeilleur utilisateur du mois PT
Domingos C.
... ... ... ... EN - My goal is for the browser to display the date/time the site was changed/updated on the server and that this date/time can not be changed by the browser. I'm interested in navigating the Site and knowing the exact date/time that the page was updated. ... ... ...

(It > En)! ... in an HTML Code Object paste or type:
[NOW] ... x the date of publication / update
-----------------------------------------
[DATE] ... x today's date
[HOUR] ... x see the current time
-----------------------------------------

-----JS------------------------------------
... or, x the date of publication / update,
  paste or type this code JS:
<script> document.write (document.lastModified); </ script>

-----JS------ [GG-MM-AAAA] ------------------------------

<script>//GG-MM-AAAA-by KolAsim
dataK = document.lastModified.split("/");
document.write( dataK[1] + "-"+ dataK[0] + "-"+ dataK[2]);
</script>

------PHP----------------------------------
... or, x the date of publication / update on the server  side,
  paste or type this PHP code on page with PHP  extension:
<?php echo  date("Y-m-d | h:i:sa",  getlastmod()); ?>

.

ciao

.

Lire plus
Posté le de  ‪ KolAsim ‪ ‪