12/5/2023 0 Comments Mysql date to php date format![]() ![]() Visit the date_format() documentation to see them all.) DATE_FORMAT() (There are several format options for PHP’s date_format(). These format strings shown in the following example produce that format for you: echo date_format($some_date, 'd/m/Y') Oftentimes, you see dates in the 2-digit month 2-digit day, and 4-digit year format (MM/DD/YYYY). In order to format the date value to a full month name, 2-digit day (with suffix), and 4-digit year, we can use these format parameters: echo date_format($some_date, 'F jS, Y') Using the date_create() function, I make a practice date we can use for the examples: $some_date = date_create('')
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |