Microsoft
Software
Hardware
Network
Question : Get only Day and month from datetime
Hello, how do you extract just the day and the month from a datetime field?
Answer : Get only Day and month from datetime
Try this :
SELECT CAST(DAY(GETDATE()) AS VARCHAR(2)) + ' ' + DATENAME(MM, GETDATE()) AS [DD Month]
SELECT DATENAME(MM, GETDATE()) + ' ' + CAST(DAY(GETDATE()) AS VARCHAR(2)) AS [Month DD]
Regards,
VDC
Random Solutions
summary match
Getting Data off of a hard drive
Kerberos & Sharepoint problems
going from one computer based on xp to new computer with windows 7
Asus F3KA Notebook Headphone Jack not working
reference an excel cell in another workbook
GAL does not show when trying to Delegate in outlook 07
Installing MS-DOS 3.20 in Bochs
How do I retrieve text from a website
SQL 2005 Syntax Error 'CREATE USER'