mySQL date Format To PHP

Codes here !

Moderators: macek, egami, gesf

Post Reply
rwhite35
New php-forum User
New php-forum User
Posts: 13
Joined: Thu Sep 27, 2012 10:55 am

Re: mySQL date Format To PHP

Post by rwhite35 » Fri Sep 28, 2012 3:06 am

Assuming $dbdate is the date you pulled out of your database, you could use the PHP date() to format the date string.

Code: Select all

$pdate = date("m/d/Y",$dbdate);

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests