10000 forum users celebration - special event

<?php
date()dd/mm/yy;
time();
?>

This is reply 666

How can I make my website display the time? I’m in UK

Lol :metal:

Use date("H:i"), but first set the date default timezone to Europe/London with date_default_timezone_set("Europe/London"). The resulting code should be this:

<?php
date_default_timezone_set("Europe/London");
echo date("H:i");
?>

Where?

in your webpage, like:

<?php
echo date("H:i");
?>

Also make sure your file is .php and not ,html, Coding backend is fun, because you write few codes and now you’ve done a magic.

I edited my code with the resulting code. Test it on a test PHP script, then when you’re ready to deploy put the first two lines at the beginning of the script including the end tag, then echo date("H:i") on the part on where you display the time. Note that it doesn’t update in real time; if you want it to update in real time either use JavaScript or refresh the page every minute using HTML at the cost of consuming the hits.

Do i put that in the middle of my html

How can I do that

:slight_smile: I just got promoted to trust level 2

1 Like

Gr8 Good Luck.

2 Likes

Don’t dare be mean about that cat.

Summary

https://view.haw.tf/index.png

1 Like

Welcome Back @adisp007

Seeing you after a long time…

1 Like

Hello all, how are you? :wave: :smiley:

Thanks @anon77371365.

Because I made many new projects, so I don’t have time to visits the forums. :sweat_smile:

3 Likes

Welcome back! I’m fine if you’re asking, thanks.

2 Likes

My version of opera (4min) is here - final after the third minute
P.S. don’t shift the focus as it will stop with the singing

And you make your own :smile:

4 Likes

I think i let the cert expire :pensive:

@allroundernaman you happy now??

Ehm.