tsql - T-SQL String to DateTime-conversion -



tsql - T-SQL String to DateTime-conversion -

i need cast string values of next formats datetime:

2042-04 2011-01

is there easy way this? i've tried cast , convert without much luck.

thanks!

try appending "-01" end of , doing cast or convert

sql tsql sql-server-2008-r2

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -