bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL MAKEDATE() Function

Example

SELECT MAKEDATE(2017, 3);

Definition and Usage

The MAKEDATE() function creates and returns a date based on a year and a number of days value.

Syntax

MAKEDATE(
year
,
day
)

Parameter Values

ParameterDescription
yearRequired. A year (4-digits)
dayRequired. A number that indicates the day of the year

Technical Details

Works in:From MySQL 4.0

Previous

MySQL LOCALTIMESTAMP() Function

Next

MySQL MAKETIME() Function