August 7th, 2003, 12:44 PM
I have found a PHP code where it will express whether it is night or day based off of location and sunrise and sunset. I would like to incorporate it into my existing day/night mode in my form. But being it is entirely done in Java Script, I am finding it too hard to incorporate the PHP in.
August 7th, 2003, 06:21 PM
var time = new Date();
alert(time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());