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
windows 7 offline files: the process cannot access the file because it is being used by another process offline
How to make dropdown disappear using code
Exclude all records from a join which have two specific values in one table
Microsoft SQL 2005
For i=0 to UBOUND(RegValueName) Type Mismatch: 'UBOUND'
How to delete a word bookmark when the document is launched from an Access form?
Can't run eseutil on Exchange 2k3 server
Bootmgr is missing, trying to import image using Windows PE/Imagex
Deploying SP3 for XP via WSUS 2.0
Adding Open Containing Folder to context menu