HelloIn my SELECT query I have: MIN(a.orderdue) AS 'Oldest order date'This works in that it brings through the oldest order date, however it brings through a date format like: 2015-06-11 11:30.000So I amended the SELECT query to:MIN (CONVERT(varchar(17),a.orderdue,103)) AS 'Oldest order date'This brings the date through as 11/06/2015, which is preferable.But I have noticed that doing this has affected the output: the MIN function no longer returns the first (oldest) date, but a completely different value.I appreciate this type of question is hard to answer without your being able to run the query yourelf, but obviously my changing the formatting for the date has affected the MIN output. Is there any way I can amend the formatting of the date without this happening?Thanks
↧