Could anyone post a code for,
Thanks
- Visitors Today
- Day, Time, Seconds
- Hit Counter
+Rep
Printable View
Could anyone post a code for,
Thanks
- Visitors Today
- Day, Time, Seconds
- Hit Counter
+Rep
<?
$date = date("F j, Y g:i:s");
echo $date;
?>
Thats for the date.
Thanks <3
dude, what's with the 300 threads'?, and google
Excuse me? I Believe this is what the forum is for.
Up yours.
I'll post as many threads as I like pl0x.
Long way for Date + time
Use:
and a file named: vnu_datastamp.jsCode:<div align="left">
<script language=JavaScript
src="vnu_datestamp.js"></script>
<br>
</div>
Inside the file with
Code:days = new Array(
"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"
);
months = new Array(
"January","February","March","April","May","June","July","August","September","October","November","December"
);
function renderDate(){
var mydate = new Date();
var year = mydate.getYear();
if (year < 2000) {
if (document.all)
year = "19" + year;
else
year += 1900;
}
var day = mydate.getDay();
var month = mydate.getMonth();
var daym = mydate.getDate();
if (daym < 10)
daym = "0" + daym;
var hours = mydate.getHours();
var minutes = mydate.getMinutes();
var dn = "AM";
if (hours >= 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0)
hours = 12;
if (minutes <= 9)
minutes = "0" + minutes;
document.writeln("<FONT COLOR=\"#000000\" FACE=\"Verdana,arial,helvetica,sans serif\" size=\"1\"><B> ",days[day]," ",daym," ",months[month]," ",year,"</B> | ",hours,":",minutes," ",dn,"</FONT><BR>");
}
renderDate();
Thanks <3 :)