Re: adding whitespace to a timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Feb 21, 2009, at 1:28 PM, Eric Sherman wrote:

I hoping to add a space between the date and the time in this:

$thedate = date('M jS g:i A', $postTIME);

i.e, between* jS* and *g:i*

I've looked around but can't find anything.

Thanks

If what you want it to have something like this:


First part of date balh blha blha blha other type Second part of date then you just pt in the variable twice and format it that way. Such as:

<?PHP
$date1 = date('M jS', $postTIME);
$date2 = date('g:i A', $posttime);

echo <<<HTML
{$date1} blah blah blah blhab lots of type all leading up to: {$date2}

HTML;

?>

or something along those lines..

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux