Thursday, August 1, 2013

how to convert a date to dd monthname yyyy format

To convert a date to dd monthname yyyy format in sql

Query
SELECT CONVERT(VARCHAR(20), GETDATE(),106)

Result
01 Aug 2013

No comments:

Post a Comment