0

I want to print the second Saturday of current month.

My code is:

$now=date('d-m-Y');
$secondsat=date('d-m-Y',strtotime('second saturday of M Y'));
echo $now."<br/>", $secondsat."<br/>";

Output is:

13-02-2019
08-02-2019

means it print second Friday. please help

Tanuj
  • 3
  • 3

1 Answers1

0
<?php 
echo date("Y-m-d", strtotime("second Saturday of ".date('M')." ".date('Y').""));

Try this one.

Gaurav Khatri
  • 387
  • 3
  • 11