php - re-format mysql field containing date information -


I have a suedo date field that is in an MESQL DB which I would like to output to a different order. Currently reads (2015-01-31) and I would like to change the output (01-31-2015). The current area is a scorpio.

I have tried many things but nothing is working. If I resonate the date without properly formulating the loops, but as soon as I add it formatting.

$ row_rsEvent [pubDate] fieldDB

  & lt ;? Php do {? & Gt; {Title: "& lt ;? php echo $ row_rsEvents ['EventTitle'];; & gt; - & lt ;? php echo date_format ($ row_rsEvents [pubDate]," mdY ");; & gt; & lt; Br> "Speaker:"  

echo it date_format (date_create ($ row_rsEvents ['pubDate']),">


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -