Skip to content

FROM_DAYS

  • n: This parameter denotes the number of days passed since year zero in the Gregorian calendar. It is an integer value which is used to calculate and return a date.
SELECT FROM_DAYS(736881);
'2019-12-31'

The FROM_DAYS function in MySQL converts the given day number to a date. In this example, day number 736881 is converted to the corresponding date ‘2019-12-31’.