how to extract dd from a database code example Example: sql: extract day text from datetime value SELECT DATENAME(dw,'09/23/2013') as theDayName