PDA

View Full Version : Date, Time, Seconds etc code.



Highjacker-x
11-05-2007, 02:32 AM
Could anyone post a code for,


Visitors Today
Day, Time, Seconds
Hit CounterThanks
+Rep

Dentafrice1
11-05-2007, 02:58 AM
<?
$date = date("F j, Y g:i:s");
echo $date;
?>

Thats for the date.

Highjacker-x
11-05-2007, 03:14 AM
Thanks <3

paradox
11-05-2007, 05:53 AM
dude, what's with the 300 threads'?, and google

Highjacker-x
11-05-2007, 11:12 AM
Excuse me? I Believe this is what the forum is for.

Up yours.

I'll post as many threads as I like pl0x.

Scott™
11-05-2007, 11:17 AM
Long way for Date + time

Use:


<div align="left">
<script language=JavaScript
src="vnu_datestamp.js"></script>
<br>
</div>

and a file named: vnu_datastamp.js


Inside the file with


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>&nbsp;",days[day]," ",daym," ",months[month]," ",year,"</B> | ",hours,":",minutes," ",dn,"</FONT><BR>");
}

renderDate();

Highjacker-x
11-05-2007, 11:44 AM
Thanks <3 :)

Want to hide these adverts? Register an account for free!