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
Need help diagnosing Sharepoint hang.
Bulk Email ID Modification
Modifying Conditional Formatting of Access Text Box on Continuous Form from VBA
Building a TreeView
How to combine VLOOKUP with SUMPRODUCT/SUMIF?
WS-Security and WSDL
Access control inside nested gridview
Progress TCP Ports Windows 2003
Where are email attachments stored in windows mobile 6.5?
Server 2003 Audit Policy