Format today's date in several ways


SUBMITTED BY: henry1874w

DATE: June 17, 2017, 1:24 p.m.

FORMAT: Text only

SIZE: 227 Bytes

HITS: 199

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. echo "Today is " . date("Y/m/d") . "<br>";
  6. echo "Today is " . date("Y.m.d") . "<br>";
  7. echo "Today is " . date("Y-m-d") . "<br>";
  8. echo "Today is " . date("l");
  9. ?>
  10. </body>
  11. </html>

comments powered by Disqus