Powered by Blogger.

How to Find Quarter Month From Any Year?


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

Assuming the 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);

No comments