Answers for "get every second monday of a month php"

PHP
0

php get start and end date of month and year

<?php

$query_date = '2010-02-04';

// First day of the month.
echo date('Y-m-01', strtotime($query_date));

// Last day of the month.
echo date('Y-m-t', strtotime($query_date));
Posted by: Guest on July-01-2020
0

in date function + 1 month and - 1 day in php

<?php
$months = n; // Here n = …..-2,-1,0,1,2, …..(months to add or subtract)
$years = n;  // Here n = …..-2,-1,0,1,2, …..(years to add or subtract)
echo date('Y-m-28', mktime(0, 0, 0, date('m')+$months, 1, date('Y') + $years));
?>
Posted by: Guest on October-13-2020

Code answers related to "get every second monday of a month php"

Browse Popular Code Answers by Language