I want date to be displayed as yyyy-mm-dd. The value in the table for date is dd/mm/yyyy. I have run the query
select CONVERT(DATE, FORMDATE, 103) from UPDATELOG
and i got error "Conversion failed when converting date and/or time from character string". Anyone can help me with this?
mysql<>sql-server. This, however, looks like T-SQL asCONVERThas a style code. Please update your tags, but also add at least a couple of sample values.dd/mm/yyyyformat. Which version of sql server you are using ? Also stop storing dates as strings to avoid such problems in future