An active engineer explains how to specify the date format with the PHP date function [for beginners]
This time, a TechAcademy mentor (active engineer) will explain how to specify the date format with PHP's date function for beginners using actual code.
If you are not familiar with PHP, explain what PHP is.You can read this article to get a better understanding.
In addition, this article is an online boot camp of Tech Academy,PHP/Laravel courseIt is introduced based on the contents of.
What is the date function
PHP's date function is a function that formats the date and time into the specified notation and outputs it.
How to specify the date format with the date function
The usage of the date function is as follows.
date (string $ format [, int $ UNIX time stamp = time ()])
Pass the specified date and time format string as the first argument of the date function. (Ex: Y / m / d H: i: s, Y o'clock m month d day ...