adddays

How to add day to date in Linq to SQL

I am writing this code. Here dt is input into the function, as well as someint. The column Exp is a T-SQL date column, which comes as a DateTime through Linq. return (from a in dataContext.TableOfA where a.name == "Test" && a.Exp.Value.AddDays(Convert.ToDouble(Someint)) >= new DateTimeOffset(dt) select a).First(); ...

javascript date object :Error while using addDays function

I was trying to execute the below code in my javascript and got some exception var now3 = new Date(); now3.addDays(-4); Error throwed is Microsoft JScript runtime error: Object doesn't support this property or method I m using jQuery 1.3.2 in my page . Whats wrong with this? Please help ...