SQL Function Reference

DAY
Returns returns the ordinal number of the day in the month (from 1 to 31)
MySQL
DAY(datetime)
Examples
MySQL
SELECT DAY("2022-06-16");