SET DATEFORMAT DMY
SELECT CAST('30/05/2010' as smalldatetime)
Where do you need the time aspect? The conversion above will add 00:00 (midnight) for smalldatetime, because:
- line has no time information
- smalldatetime allows minute resolution
source
share