This is a real simple question...but I just cant remember the right way of doing it:
I have this: <? $datenow = date('Y-d-m'); $timenow = strftime('%H:%M:%S'); ?>
How can I combine these the above into 1 variable?
$blah = $datenow.$timenow;
echo date("Y-d-m H:i:s");
u mean this ??
reg kevin
That did it! Thank you...
One last question...how can I get this to show a date 30 days prior to today?
Thanks for the help!
date("Y-d-m H:i:s", strtotime("-30 days"));
<?php $timestamp = mktime (date("H"),date("i"),date("s"),date("m"),date("d")-30,date("Y")); echo date("Y-d-m H:i:s",$timestamp); ?>
guess that solves both ure threads ... :p reg kevin