Re: adding whitespace to a timestamp

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

 



On Sat, Feb 21, 2009 at 1:28 PM, Eric Sherman <copyeditnow@xxxxxxxxx> 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
>
> Eric Sherman
> Multi Media Information

You can put spaces anywhere in that string you want them. What problem
are you having?

<?php

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

?>

Andrew

-- 
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