Re: adding whitespace to a timestamp
| From: | German Geek | Date: | Tue, 24 Feb 2009 02:26:35 +0000 |
| Subject: | Re: adding whitespace to a timestamp | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288721@lists.php.net to get a copy of this message | ||
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@gmail.com>
> On Sat, Feb 21, 2009 at 1:28 PM, Eric Sherman <copyeditnow@gmail.com>
> 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
>
>