Name

MAKEDATE()

Synopsis

MAKEDATE(year, dayofyear)

Returns a date given year and dayofyear values. If dayofyear is zero, the result is NULL. This code returns the date “2011-10-01”:

SELECT MAKEDATE(2011,274);

Get Learning PHP, MySQL, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.