MMCT TEAM
Server IP : 192.185.129.71  /  Your IP : 18.221.139.13
Web Server : Apache
System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : svymadmin ( 4072)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home4/svymadmin/public_html/library/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home4/svymadmin/public_html/library/test.php
<?php
        $start    = (new DateTime('2018-10-01'));
        $end      = (new DateTime('2019-05-30'));
        $interval = DateInterval::createFromDateString('2 month');
        $period   = new DatePeriod($start, $interval, $end);
        
        foreach ($period as $dt) {
            echo $dt->format("Y-m") . "<br>\n";
        }
        
       echo strtotime("12-11-2018") ."<br>\n";
       echo strtotime("1-11-2018") ."<br>";
?>

MMCT - 2023