How to Find Quarter Month From Any Year ?

By | August 2, 2011

A Quarter means 1/4 part of year.
In the following example given Script is
use to find which quarter of the year
in the given date.

Assuming given date is 10 December 2015
Following is the Example.
Just Copy & Paste and Enjoy.

$month = 12;
 
$date = 10;
 
$year = 2015;
 
$qm = mktime(0,0,0,$month,$date,$year);
 
echo ceil(date("m", $qm)/3);

Leave a Reply