Automatic visualization on the Site of the date and time of recording/updating of the Project.
Autor: Domingos Costa
Visited 1569,
Followers 1,
Udostępniony 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
Posted on the
Use this code in an html object
<FONT size=2 color="#505050">
[DATE]
</font>
Look on the internet there are more options to be found, like here:
https://www.arclab.com/en/kb/htmlcss/display-date-time-javascript-php-ssi.html
Just try and see what's best for you.
Autor
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)
(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
.