
benn600
User

Nov 21, 2004, 7:35 PM
Post #2 of 6
(959 views)
|
|
Re: [Exuro] `date` not working on server
[In reply to]
|
Can't Post
|
|
I use date on my website as well (in my signature) but I didn't use what you used. I forget where I actually got the text but here is part of it: ($sec,$min,$hr,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); @days = ("Sun","Mon","Tue","Wed","Thur","Fri","Sat"); $year = $year + 1900; $currentdate = "$days[wday] $mday/$mon/$year"; print "$currentdate"; This should give you what you are looking for but it is a little more complicated. It works for me and I set it up to do just what you wanted. I hope everything works out right! ----------------------------------------------------------------------------
http://www.ppcpathways.com/ Visit my new site devoted to reviewing the latest pocketpc products and news that I built in cgi-perl!
|