[REQUEST]Count down time

I think hes refering to something like the cheech and chong countdown time with huge letters and slowly counting down second by second.
 
so i want a code to be showd from 2AM and another one from 2PM.How do i use that?

Have you tried putting '2PM' and '2AM' in strtotime?
PHP:
echo date('r', strtotime('2AM')) . "\n" . date('r', strtotime('2PM'));
Result:
Code:
Wed, 18 Apr 2012 02:00:00
Wed, 18 Apr 2012 14:00:00

Come on, it's easy :) Don't be afraid to try things- I promise PHP won't blow up your host if you make a mistake...

JavaScript would truly be the better way to format/display the date. You should only use PHP to send your time strings to JavaScript if they're stored server-side.

For example, the PHP date function I used in this post is completely useless if you're coding PHP right.
 
Last edited:
Back