Re: adding whitespace to a timestamp

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

 



Maybe the issue is that you are displaying the output in a browser and
spaces are not shown.

Try puttung   instead of a literal space.

Tim-Hinnerk Heuer

http://www.ihostnz.com
Henny Youngman  - "When I told my doctor I couldn't afford an operation, he
offered to touch-up my X-rays."

2009/2/24 Andrew Ballard <aballard@xxxxxxxxx>

> 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