To convert a given date to dd-mm-yyyy format in sql server,
use the following query
Query
SELECT CONVERT(VARCHAR(30), GETDATE(),110)
Return value
08-01-2013
use the following query
Query
SELECT CONVERT(VARCHAR(30), GETDATE(),110)
Return value
08-01-2013
No comments:
Post a Comment