DAY allows you to retrieve the day from a date.
DAY(d)
In this example you get the day from the date field whn.
whn
SELECT DAY(whn) AS v ,whn ,wht FROM eclipse