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
Report failure notification in SQL REPORTING
Find text in file, and find next lines
TCP/IP Send/Recieve Files
FSMO Roles
can I partition Win 7 xp mode drive
Windows Mail to Outlook Express
Access saving changes to a checkboxes
How do I add a "change your password" page in a dot net framework
how can i delete a post on OCS Group Chat server?
How to restore missing sort / filter menu in Access 2007 runtime version