This tutorial explains how to use the MySQL FROM_DAYS function with syntax and examples.
The MySQL FROM_DAYS function takes a numeric representation of the day and returns a date value.
The syntax for the FROM_DAYS function in MySQL is:
FROM_DAYS( numeric_day )
The numeric day to convert to a date.
The FROM_DAYS function can be used in the following versions of MySQL:
Let's look at some MySQL FROM_DAYS function examples and explore how to use the FROM_DAYS function in MySQL.
For example:
mysql> SELECT FROM_DAYS(736038);
Output: 2015-03-16
mysql> SELECT FROM_DAYS(736039);
Output: 2015-03-17
mysql> SELECT FROM_DAYS(736040);
Output: 2015-03-18