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
windows vista gadgets have disappeared
power user to reset Admin password
Change label caption in report header
Force close an .mdb file that is in use then compact and repair it using vba code
VBA Outlook.TaskItem Export Error
16 bit ms dos sub system
Nested Subquery efficiency
Moving mailboxes from SBS 2003 to Exchange 2007
Access 2000 Multi User Help
ISA 2004 Load Balancing mail & web on two adsl routers