NYCPHP Meetup

[nycphp-talk] Help converting MySQL datetime to month

csnyder chsnyder at gmail.com
Thu Oct 19 21:39:49 EDT 2006


On 10/19/06, Randal Rust <randalrust at gmail.com> wrote:
> I have a function that does what I want, I just find it hard to
> believe that there isn't something better. So any pointers would be
> greatly appreciated.

linux/unix only I think:

function convertDatetime($value){
  return date( 'F d, Y', strtotime( $value ) );
}


-- 
Chris Snyder
http://chxo.com/



More information about the talk mailing list