File: fwphp/glomodul/z_examples/book_video/gallery_powers/date_interval.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/gallery_powers/date_interval.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/gallery_powers/date_interval.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 316 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>DatePeriod: ISO Recurring Dates</title>
</head>

<body>
<p>
    <?php
    $period
= new DatePeriod('R4/2019-07-10T00:00:00Z/P10D');
    foreach (
$period as $date) {
        echo
$date->format('l, F j, Y') . '<br>';
    }
   
?>
</p>
</body>
</html>

For more information send a message to info at phpclasses dot org.