Anders_II
01-30-2009, 08:26 AM
1) Script Title:
Universal Countdown Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex6/universalcountdown.htm
3) Describe problem:
Hi, I have just found this script and its just what I need but,
is there any chance that I can get this thing to work if I want to change the timeformat (see below):
This is the original 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() %>'
But for "server-php" mode I would like to use the dateformat date("Y-m-d H:i:s") instead.
I have tried alot of changing the code but I get error (date will be NaN-Nan-Nan-...)
Can anyone help me?
Reguards
Anders
Universal Countdown Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex6/universalcountdown.htm
3) Describe problem:
Hi, I have just found this script and its just what I need but,
is there any chance that I can get this thing to work if I want to change the timeformat (see below):
This is the original 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() %>'
But for "server-php" mode I would like to use the dateformat date("Y-m-d H:i:s") instead.
I have tried alot of changing the code but I get error (date will be NaN-Nan-Nan-...)
Can anyone help me?
Reguards
Anders