Tags
Asked 3 years ago
13 Jul 2021
Views 259
Hillary

Hillary posted

How do I convert a date to a string in PHP?

How do I convert a date to a string in PHP ?
pratik

pratik
answered Aug 19 '21 00:00

in PHP

<?php
echo date('d-m-Y');
?>


date() function returns the string in date format.
Post Answer