We all know that there are 12 months in a year, one months have 31 days (or 30 days, February has 28 days, leap year February has 29 days), one weeks have 7 days, 24 hours a day ... Wait a minute. But our computer does not know Ah, it is not able to distinguish the right and wrong data, so, can only rely on the features provided by developers to perform or check. Using the Checkdate () function in PHP for date checking, we'll explain the "checkdate ()" function in this chapter. Checkdate () function syntax: the checkdate () function is the validity of the check date, and its syntax is as follows: Checkdate (month, day, year) syntax: Returns TRUE if the given date is valid, otherwise FALSE. It has three parameters: the valid value for month for 1~12;day is the maximum number of days for the current month, for example, January is 31 days, February is 29 days (leap year
1. Example of validity of PHP checkdate () function test Date
Introduction: We all know a year has 12 months, one months have 31 days (or 30 days, February has 28 days, leap year February has 29 days), one weeks have 7 days, 24 hours a day ... Wait a minute. But our computer does not know Ah, it is not able to distinguish the right and wrong data, so, can only rely on the features provided by developers to perform or check. Using the Checkdate () function in PHP for date checking, we'll explain the "checkdate ()" function in this chapter.
2. Blood-c the last dark php checkdate, getdate, and other date-time functions
Introduction: Blood-c The last dark:blood-c dark php checkdate, getdate and other date-time functions in detail: checkdate ($month, $date, $year) If the applied value constitutes a valid date, the function returns to true. For example, for the error date February 31, 2005, this function returns FALSE. Use this function to check the date and make the date effective before the date is used to calculate or save in the database. Copy the code code as follows: <?php//returns false echo Checkdate (2
3. PHP Date format php date Operation Tips Summary
Introduction: PHP Date format: PHP date format php date Operation Tips Summary: This article summarizes the PHP date operation skills. Share to everyone for your reference, as follows: 1. PHP converts the date format obtained in the form into a unified format 2015-9-9 all unified into the 2015-09-09 so in the database is a unified format, convenient later query $year = ""; $month = "9"; Day = "Var_dump" (Checkdate ($month, $day, $year));//monthly and daily with a leading 0 is a conforming lattice
4. PHP Check Date function Checkdate Use example
Introduction: PHP Check Date function Checkdate Use example
5. PHP time (), date (), mktime () Difference Introduction _php Tutorial
Introduction: PHP in Time (), date (), mktime () differences introduced. Checkdate: Verify the correctness of the date. Date: Formats the time of the server. Strftime: The time of the server is formatted locally. GETDATE: Get time and date information.
6. PHP Advanced Application Tips for datetime functions _php Tutorial
Introduction: Advanced application Techniques for PHP date-time functions. Checkdate ($month, $date, $year) if the applied value constitutes a valid date, the function returns True. For example, for the error date February 31, 2005, this function returns FALSE. In the date
7. PHP checkdate, getdate and other date and time functions _php tutorial
Introduction: PHP checkdate, GETDATE and other date-time functions of the detailed operation. Checkdate ($month, $date, $year) if the applied value constitutes a valid date, the function returns True. For example, for the error date February 31, 2005, this function returns FALSE. In the date
8. Php-time (), date (), mktime () _php tutorial for dates and time function libraries
Description: Php-time (), date (), Mktime () and Time function library. Checkdate Verify that the date is correct. Syntax: int checkdate (int month, int day, int); Return value: integer function type: Time Date content Description returns if the date is valid
9. Checkdate Verify a _php tutorial
Introduction: Checkdate Validates a trellis-high-date. Checkdate (PHP 4, PHP 5) checkdate Verify that a trellis Gao Li date description boolcheckdate (int$month,int$day,int$year) returns True if the given date is valid, otherwise false is returned. Check
PHP Regular validation Date time format Instance Code _php Tutorial
Summary: PHP is validating date time format instance code. Using PHP to verify the date format we can use the checkdate () function and regular expressions to verify, and I will give you a brief introduction to my classmates in the validation date format some process, and finally came to
"Related question and answer recommendation":
javascript-vue2.0 How to select current Fetch current data