Re: [PHP] date format from a database date field



On 5/21/07, Mike Ryan <miker@xxxxxxxxxxxxxx> wrote:

Sorry I am a bit of a newbie with php and hope this has not been aswered a
million times, but here it goes

I have a date base with a couple of date fields when I pull up and display
the fields it show 2007-05-21. the question I have is how to convert the
field to 05-21-2007?

Currently the command I have is

print $row['open'];

any help would be apreciative.

thanks

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



For starters, try to keep all similar requests in one single email....
otherwise you look like your spamming the hell out of the list.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107


Relevant Pages

  • Re: Straddles for Thursday
    ... >> you in the past on your ignorance of stock options. ... OK, pull up the post. ... the hell you're talking about. ... today with your "wacky math", so either back up what you've ...
    (misc.invest.stocks)
  • Re: Rest in Peace RMMP
    ... but it might be time to pull the plug. ... Gone is the regular fellowship and barroom banter; ... ((Hell I gotta talk to somebody before southern Illinoizzz ...
    (rec.music.makers.percussion)
  • Re: Rest in Peace RMMP
    ... but it might be time to pull the plug. ... opinions and such. ... ((Hell I gotta talk to somebody before southern Illinoizzz ...
    (rec.music.makers.percussion)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: texas rainbow chat google group and tgc
    ... Pull your 2" cock for all I care.... ... hell, pull his. ... you are the onbly waste of time here ..... ... or people that work outside of the council process. ...
    (alt.gathering.rainbow)