Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
HI,I have two int variables and one date variableDECLARE @EXPYEAR INT, @EXPMONTH INT, @CREDITCARDDATE DATETIME SET @EXPYEAR = 2005SET @EXPMONTH = 6I want to assign CREDITCARDDATE as 2005/6/1 as the date.But since here @EXPYEAR and @EXPMONTH are integers and available seperately, I dont know how to convert them together into a date.Do you have ideas of how I can do this ?Thanks a lot for your time.