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
Public variable value missing
Unable to remove replica public folders
Access 2007 runtime spell check options
How can I list user logon names from Active Directory?
Cannot open database -- VBA Project corrupt
restoring database window
Sort a SortedDictionary based on value, not key - C#.net MVC
Renumbering Primary key after delete
Microsoft, Office, 2007, Change User Menus & interfaces to English
I need to strip out every vbCrLF from a field