0

Im trying to output a date from my database but i get lots of 0 in front of the date.

foreach($datas as $data){
    echo $data['date'];
}

my output is 0.00000000 1561828107 why is that?

Kinggeov
  • 184
  • 12
  • Look at https://stackoverflow.com/questions/13448614/how-to-return-iso-date-format-in-php-for-mongodb/13448657 – Akrion Sep 25 '18 at 04:28
  • Possible duplicate of [How to return ISO date format in PHP for MongoDB?](https://stackoverflow.com/questions/13448614/how-to-return-iso-date-format-in-php-for-mongodb) – Akrion Sep 25 '18 at 04:28
  • I found the solution thanks – Kinggeov Sep 25 '18 at 04:54

0 Answers0