I assume you are trying to convert a column that is one of the datetime formats (datetime, smalldatetime etc.) to a string. http://msdn.microsoft.com/en-us/library/ms187928.aspx lists various conversion formats from datetime to strings. If none of them suit your needs, you will have to build it. For example, to show mm/yyyy, you could doselect left('0'+cast(month(YourColumn) as varchar(2)),2) + '/' + cast(Year(YourColumn) as varchar(4))For YYYY-MM-DD, you could doselect left(convert(varchar(32),YourColumn,126),10);
That said, many people on this forum who have a lot of experience and in-depth knowledge of SQL will advise you to do the conversions in your presentation layer, if that indeed is the purpose of doing the conversions.