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
Transpose-Data
Mixed formatting in a single textbox in Access 2003
Add the name of the Access database in a new column
How to determine if a user is logged in through Citrix
Remote ms access back end
Dates will not format properly (month and day)
wiaManager = new WiaClass(); // create COM instance of WIA manager
Exchange 2007 RSG Problem
AxShockwaveFlash transparency problem
Blue Screen Windows 7 - Memory_Management 0x0000001a