Skip to content

Commit

Permalink
Create task03.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rajanam committed May 25, 2016
1 parent 4b441dd commit 4e23880
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions task03.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$query_date = '2016-05-04';
$date = new DateTime($query_date);
//First day of month
$date->modify('first day of this month');
$firstday= $date->format('l');
echo $firstday . ' was the first day of May 2016';
echo '<br />';
//Last day of month
$date->modify('last day of this month');
$lastday= $date->format('l');
echo $lastday . ' is the last day of the month of May 2016';

0 comments on commit 4e23880

Please sign in to comment.