Share Date in PHP Posted on Jan 12th, 2012 by xavsio4 beginnercodingphp PHP This is as simple as this echo date('Ymd'); For the available date formats, please consult the php reference here. SCAN THIS QR CODE WITH YOUR PHONE