Advertisement
AlexWebDevelop

Untitled

Apr 14th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2.  
  3. $date_a = '2018-09-05';
  4. $date_b = '2019-04-03';
  5.  
  6. $dt_a = new DateTime($date_a);
  7. $dt_b = new DateTime($date_b);
  8.  
  9. echo $dt_a->format('F Y');
  10. echo "<br>";
  11. echo $dt_b->format('F Y');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement