Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $date_a = '2018-09-05';
- $date_b = '2019-04-03';
- $dt_a = new DateTime($date_a);
- $dt_b = new DateTime($date_b);
- echo $dt_a->format('F Y');
- echo "<br>";
- echo $dt_b->format('F Y');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement