Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Drop in Replacement for strtotime() in PHP
  2. $TimelineEvents[$i]["Date"] = date("F j, Y", strtotime($Date));
  3.        
  4. $dateTime = new DateTime($Date);
  5. $TimelineEvents[$i]["Date"] = $dateTime->format('F j, Y');
  6.        
  7. $date = DateTime::createFromFormat("Y-m-d", $Date);
  8. $TimelineEvents[$i]["Date"] = $date->format("F j, Y");