SQL
SQL Server DAY() Function
Return the day of the month for a date: