parse datetime to monthname

$_VN_$

New Member
Hi im trying to convert my int datetime in MSSQL to monthname instead. Im from denmark(DK) and the code is.\[code\] DateTime dateTime; if (DateTime.TryParse(KeyWord, out dateTime)) { KeyWord = Convert.ToDateTime(KeyWord).ToLongDateString(); } objCMD.Parameters.AddWithValue("@keyword", "%" + KeyWord + "%");\[/code\]but i think im missing something.ThanksEDIT: Sorry guys. It may because im a retard, but i cant get it to work. Im getting all the dates from a database, and i want to use the monthnames in a search function. Im not sure if i have to do something else, when its a search function.
 
Back
Top