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, I'm RJ! For more learnings about software and management, find me @rjzaworski or sign up for my semi-regular newsletter.

Let’s keep in touch

Send me timely updates on software, product, and process.