PHP Function: Built-in Functions part 4
Today we will look at some Date and Time functions.
date()
The date() function returns the current server timestamp, formatted according to to a given set of parameters. Its syntax is
date(format, [timestamp]);
The date() Function Formats are located at https://techsoftcenter.com/articles.php?view=238
checkdate()
The checkdate() function validates a given date. Successful validation means that the year is between 0 and 32767, the month is between 1 and 12, and the proper number of days are in each month (leap years are accounted for). Its syntax is
checkdate(month, day, year);