Re: adding whitespace to a timestamp
| From: | Jason Pruim | Date: | Sat, 21 Feb 2009 21:11:24 +0000 |
| Subject: | Re: adding whitespace to a timestamp | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288654@lists.php.net to get a copy of this message | ||
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. ThanksIf 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..