| Function | Description |
|---|---|
| BETWEEN | Records Between two dates |
| CURDATE() | Current Date using MYSQL Query |
| DATE_ADD() | Add by specifying INTERVAL in days, month, year , Hour, minutes etc |
| DATE_SUB() | Subtracting Day, month , year , time etc |
| EXTRACT() | Get part of date and time |
| STR_TO_DATE() | Convert String to Date & time Format as required by MySQL date field |
| TO_DAYS() | Difference in days between two Dates |
| DATE_FORMAT() | Formatting Date & Time output as required |
| DAY() | Day part of the date field |
| DAYNAME() | Day Name in Full ( Monday ) |
| DAYOFWEEK() | Weekdays starting from Sunday as 1 and ending with Saturday as 7 |
| DAYOFYEAR() | Number of the day in a Year ( 1 to 366 ) |
| LAST_DAY() | Last Day of the month |
| MONTH() | Month part of the date field |
| MAKEDATE() | Date from Year and DayOfYear |
| MONTHNAME() | Full Month name from date |
| NOW() | Current Date and Time |
| QUARTER() | Quarter of Year Data |
| YEAR() | Year part of the date field |
| YEARWEEK() | Year with Week number of the year |
| WEEK() | Week number in a year (0 - 53) |
| WEEKDAY() | Day Week number in a week (0 - 6) |
| WEEKOFYEAR() | Week number in a year (1 - 53) |
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.
| deepak verma | 13-10-2009 |
| a really good work. one of the best sites that gives u exact working answers | |
| noraina norddin | 11-03-2010 |
| how to insert current time in mysql for automatic using php?? | |
| sayed | 24-02-2012 |
| really good | |