Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in

Posted on

print date in specific format in Php

print date in specific format - Php:

function printDate() {
  // get the current date
  $date = date('Y-m-d');
  // print the date
  echo $date;

printDate(); //2019-01-01

Enter fullscreen mode Exit fullscreen mode

Top comments (0)