I got date as \'14-Dec-2010\' i want to get the month in number format for the given date. that is., i want to convert the date to \'14-12-2010\'.<
\'14-Dec-2010\'
\'14-12-2010\'
I think this SQL convert should work
SELECT CONVERT(datetime,'14-Dec-2010',105)