get month number from month name sql code example Example: sql get month name SELECT GETDATE() 'Today', FORMAT(GETDATE(),'MMMM') 'Month Name'