So the server will provide us the information in the standard format when the date function gets executed.If you want to change the format as you wish it can be done using several ways. PHP Convert datetime format. Here is the code used to display the above date … 1. an Array of date to bootstrap datepicker setDate. The Carbon class is inherited from the PHP DateTime class. date description Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given. 0. Related Tutorials PHP Date Format PHP Time Stamp Time Stamp Generator.