How can I convert date format in SQL Server 2008?
SELECT
Dateadd(DAY, (SELECT MaxCheckday
FROM tbl_LibryMemberCategory
WHERE IsDeleted = 'N'), Getdate())
While running the above query I get this error
Msg 242, Level 16, State 3, Line 1
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
select MaxCheckday from tbl_LibryMemberCategory where IsDeleted='N'and there is no format converstion happening in your query. - Pரதீப்convert(varchar,Getdate(),103)in Dateadd - Pரதீப்