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
access update set
VBA Excel: how to force sheet recalculating
Why do pivot tables continually corrupt excel sheets?
How to read contents of Macros using VBA
IP change on Win2K Server DC
How do I use RecordSelectionFormula to pass dates via VS 2005 to Crystal report 2008?
Using an Enum to limit the property vales of a class
can i install windows 7 on an external USB hard disk ?.
how to correct the error 257
CanGrow /ShouldGrow