PDA

View Full Version : Date?


eggz
12-29-2002, 02:59 PM
This is probably really simple and just requires one variable but.... I'm tired and stressed and I think my brains deserted me - how on earth can I get The time now is... on the front page to be followed by the date? Is it just $datenow or something similar?

Thanks in Advance,
Oliver

Xenon
12-30-2002, 10:37 AM
$timenow :) ?

eggz
12-30-2002, 12:19 PM
to be followed by the date?

Is the question - times fine thank you :)

Thanks anyway - should word my questions better!
Oliver

Boofo
12-30-2002, 01:48 PM
Go into your root/global.php file and find:

$timenow=vbdate($timeformat,time());

and replace it with:

$timenow=vbdate("g:i a", time()) . " on " . vbdate("l, F j, Y",time());

Make sure you set the time and date variables to how you want them to actually show up.

eggz
12-30-2002, 06:06 PM
Thanks mate I owe you one! :D

Boofo
12-31-2002, 01:51 AM
No problem. You can thank the man above (Xenon) for this one. :)

eggz
12-31-2002, 11:02 AM
OK.... Thanks Xenon! :squareeyed:

Ollie

NTLDR
12-31-2002, 11:33 AM
Alternativly you can add this code so you can use $datenow and that they following the date and time format in the ACP:

$datenow=vbdate($dateformat,time());

Boofo
12-31-2002, 11:39 AM
I thought of doing that but it isn't quite as configurable as to the way to be able to set the date how you want it to show there and different on the rest of the site. But I suppose you could configure that the same way. Where were you when I was trying to figure this out before? ;)

Chris M
12-31-2002, 12:45 PM
Probably In Bed Sleeping:D;):p

Satan

ChevyMan
03-03-2003, 09:16 AM
So how would one put the date in the last post column. I have the time but no date?

Thanks

Dean C
03-03-2003, 03:38 PM
It should automatically be in the lastpost column.

- miSt