Archive for May, 2009

Get the first and the last day of the current month in PHP

Thursday, May 21st, 2009

Here is how to get the first and the last day of the current month in PHP

<?php

if (function_exists('date_default_timezone_set')) {
date_default_timezone_set('America/Toronto');
}

$start_data = date("Y-m-01");
$end_data = date("Y-m-d", strtotime("-1 day +1 month", strtotime(date("Y-m-01"))));

echo $start_data . " " .  $end_data;
// Outputs: 2009-05-01 2009-05-31
?>

Related

SEO Filter’s Site Critiqued on WebmasterRadio.Fm

Tuesday, May 12th, 2009

My SEO Filter's site has been critiqued (brutally as per my request) by Webmaster Radio team at http://is.gd/zmst

(put the player after 19:20)

Here is a link to SEO Filter's site.

SEO Software for Forums and Content Management Systems