sql server - How can I add months onto a given date in a SQL Table -


i'm trying write function represent when employees (agents) 6 month review take place, using date arithmetic adding on 6 months hire date , can't seem right

select empfirstname, emplastname, cast(datehired, + 6 month) reviewdate employees 

select empfirstname, emplastname,dateadd(month, 6, datehired) datehired employees 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -