What is the difference between using procedural and object-oriented style in PHP for date formatting?

When formatting dates in PHP, using the procedural style involves calling functions like `date()` and `strtotime()`, while the object-oriented style utilizes the `DateTime` class. The procedural style is more traditional and simple, but the object-oriented style offers more flexibility and features for date manipulation.

// Procedural style
$date = date('Y-m-d H:i:s', strtotime('now'));

// Object-oriented style
$date = new DateTime();
echo $date->format('Y-m-d H:i:s');