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 2008 certutil -keyrecover fails when I try to recover a key.
SUMPRODUCT not working
ASP.NEt Error : "An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file "
A Christmas Card challenge
Change CommonProgramFiles
Turn On Shortcut keys selectively to export report.
Should I use SqlDataSource or SqlConnection (which is better)
How to make a PC a thin client?
Backing up SharePoint Services 3.0
type mismatch with this statement