Convert Date to CYYMMDD SQL-Server -
Convert Date to CYYMMDD SQL-Server -
i interested in converting date value cyymmdd
using native sql server 2012 functions.
i checked here:
http://www.sql-server-helper.com/tips/date-formats.aspx
and couldn't find anything.
anyone know?
c stands century guess...
have looked @ new format
function in sql server 2012?
http://msdn.microsoft.com/en-us/library/hh213505.aspx
you should able utilize this:
select format(yourdatecolumn, 'yyyymmdd')
or whatever want utilize - basically, the same formatting options in c# / .net available when using format
sql date sql-server-2012 format
Comments
Post a Comment