declare @ValueDate smalldatetime
set @ValueDate = '21/05/2007'
select @ValueDate
error:
The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
Please note, if '05/21/2007' is used then there is no error.
How is it possible to get 'dd/mm/yyyy' as above to work please
Thanks