use Carbon\Carbon; // Use the default format (Y-m-d H:i:s) $date = Carbon::now(); echo $date; // "2021-09-24 14:31:00" // Use a custom format $date->setToStringFormat('l, F jS Y'); echo $date; // "Friday, September 24th 2021"In the first example, we simply create a new Carbon object and output it as a string using the default format of `Y-m-d H:i:s`. In the second example, we use the `setToStringFormat()` method to change the output format to a more human-readable format like "Friday, September 24th 2021". From these examples, it's clear that Carbon is a date and time library for PHP.