Ok. I got yahoo to accept it by separating some of the functions. When you paste it onto your system, just bring all the lines together to form one line. Be careful you don't delete any commas.
select substring(
convert(char(4),
datepart(yyyy,
convert(smalldatetime,'April 11, 2007'))),1,2) +
convert(char(6),
convert(smalldatetime,'April 11, 2007'),12)
To use a field name instead of a hardcode date, just replace with the field:
select substring(
convert(char(4),
datepart(yyyy,
convert(smalldatetime,
FieldName))),1,2) +
convert(char(6),
convert(smalldatetime,
FieldName),12)
From
TableName
Edit:
Rich is corrrect...
And assuming your date field is of type char you still need to covert it to smalldatetime, prior to using style 112.
select convert(char(10),convert(
smalldatetime,'April 11, 2007'),112)