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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -