Is there something similar to DATEFROMPARTS(year, month, day)
in SQL Server 2008? I want to create a date using the current year and month, but my own day of the month. This needs to be done in one line in order to be used in a computed column formula.
For Example (I'm not sure if it works because I do not have SQL Server 2012):
DATEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), 3)
Is there a way to do this in SQL Server 2008?
DATEFROMPARTS Seems only available in SQL Server 2012 (link)