DEV Community

Discussion on: Basic Text Formatting in PHP using printf() with decimals, prices, strings, and dates

Collapse
 
vlasales profile image
Vlastimil Pospichal
$date = date("m/d/Y");
echo $date;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
morinoko profile image
Felice Forby

Yeah, I think there are definitely some better ways to handle times and dates!