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
Post a Comment