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
Application.LoadFromText automation
How do you tell visual studio to reindent all code so you can match up the "if/else" "while", and strucs like that
2003 Prolaint ML370 looping during startup System License Violation.
Asp.Net aspx page can page be reloaded and retain Values
Invalid access to memory location
How do I add the YTD Column to this query in Access?
Dcount with null values
Microsoft Money - Login question
Sharepoint - Edit existing document error
Do you know how I could make a single SQL Statement into a compound SQL Statement using the following SQL statements ?