Technology · Reference dataset
MySQL Date Functions
MySQL date functions and descriptions of their uses.
Download options
Preview the records
The 10 most recently added of 50 records · Select a column heading to sort.
| ID | Function | Description |
|---|---|---|
| 50 | YEARWEEK | Returns the year and week number for a given date |
| 49 | YEAR | Returns the year part for a given date |
| 48 | WEEKOFYEAR | Returns the week number for a given date |
| 47 | WEEKDAY | Returns the weekday number for a given date |
| 46 | WEEK | Returns the week number for a given date |
| 45 | TO_DAYS | Returns the number of days between a date and date "0000-00-00" |
| 44 | TIMESTAMP | Returns a datetime value based on a date or datetime value |
| 43 | TIMEDIFF | Returns the difference between two time/datetime expressions |
| 42 | TIME_TO_SEC | Converts a time value into seconds |
| 41 | TIME_FORMAT | Formats a time by a specified format |
CSV / JSON / XML
Put this data to work.
All 50 records, in your choice of format.
- This dataset and the rest of the catalog
- Complete CSV, JSON, and XML files
- Category ZIPs and API access
365 days of access to the catalog. One payment, no automatic renewal.
Your key arrives by email after payment. Use it here to download the complete file.
Already have a pass?
Your key is used for this request and is not saved by this page.
Commercial use is allowed, free or paid.
Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.
Scope and sources
Last checked against sources: October 15, 2026.
Last changed: July 17, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.
A complete download includes all 50 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.
Use this dataset through the API
GET https://mysafeinfo.com/api/data/mysqldatefunctions
Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.
Without a pass, sorting and randomization apply only to the fixed 10-row sample.