sql get date within a datetime value
SELECT CONVERT(VARCHAR(10),GETDATE(),111)
--> returns 2009/07/30SELECT CONVERT(VARCHAR(4),GETDATE(),111)--> returns 2009
Achievement provides the only real pleasure in life
SELECT CONVERT(VARCHAR(10),GETDATE(),111)
--> returns 2009/07/30SELECT CONVERT(VARCHAR(4),GETDATE(),111)--> returns 2009
Posted by SF at 3:58 pm
No comments:
Post a Comment