I want to get date part only from database \'date time\' value I m using the below code..but it is getting date and time part.
using (FEntities context = new
context.Database.SqlQuery(sql, sql_parameters)
accepts pure SQL in the first parameter. Use MS SQL server's function CONVERT(VARCHAR(6), date_value, 112) AS MonthYYYYmm for retrieving year with month.