Quick help with date/time query string from PHP to JS
I am working with a timer and to work properly it needs to be all in JS (part of a forum coding thing, don't ask - it's frustrating)
Anyway, the current code is in both JS and a tiny bit of PHP (for getting current server date/time. THe current code is this:
PHP Code:
var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' : '<%= Now() %>'
I need the exact output that would be given, except all in JS. I just don't know how to do this. Help?
BLiZZ