Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: Date Formatting


Message #1 by "Vittal_setty" <Vittal_setty@i...> on Sun, 22 Dec 2002 02:44:56 +0530
SELECT DATENAME(m,CreatedDate)from Empolyees will return the month name.

> Hi 
I have the date entered available in the database in MM/DD/YY format.
 
Table Name : Employees
Column Name: CreatedDate
Value:01/25/2002
 
Now I have to retrieve the month part of the created date as January.
 
I understand that Select Month(CreatedDate) from employees 
would return me a value1.
 
I need my query to return January.
 
How would I do this?
 
Thanks for your time
Vittal


  Return to Index