Gusti Arya
Gusti Arya

Reputation: 1301

SQL Server convert date to String MMMYYDD

Im trying to convert date value into this MMMYYDD String format, using native Sql server 2008 r2 function,

I checked here http://www.sql-server-helper.com/tips/date-formats.aspx

and still I can't find matching format.

any ideas?

Upvotes: 1

Views: 237

Answers (1)

roman
roman

Reputation: 117370

something like this?

select convert(varchar(3), @date, 7) + convert(varchar(4), @date, 12)

sql fiddle demo

Upvotes: 2

Related Questions