I used the CONVERT(data_type(length), expression, style) function for modifying the date format in a SELECT query.
Declare @dt nvarchar(20)
Select @dt = Convert(nvarchar(20), SalesDate, 113) FROM SalesTable
The format I need is 'DD-MMM-YYYY' (eg. '05-Jul-2013') though I could not find the proper style number (eg. 113) for this particular format.
Can anyone help me with this?