Printing the week

  • 4/12/2011
public function pretty_monday() {

  $time = strtotime(((date('w')!=1)?'previous ':'').'monday');
  return date('F jS',$time).'-'.date('jS',strtotime('6 days',$time ));
}

Hey, it's RJ—thanks for reading! If you enjoyed this post, would you be willing to share it on Twitter, Facebook, or LinkedIn?