Hello everyone I have face this issue in sql Conversion failed when converting date and/or time from character string. I have compare two date
UserClaims.ClaimType='RenewDate' AND UserClaims.ClaimValue < GETDATE()
Hello everyone I have face this issue in sql Conversion failed when converting date and/or time from character string. I have compare two date
UserClaims.ClaimType='RenewDate' AND UserClaims.ClaimValue < GETDATE()
Know the answer? Post it. Somebody with the same question will find it here.
Sachin SinghRank #66 · 26.2K reputationPosted May 16, 2022, 1:54 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 16, 2022, 2:19 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 16, 2022, 2:30 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 16, 2022, 2:56 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted May 16, 2022, 6:13 AM EDT
RohanRank #1,548 · 1K reputationPosted May 16, 2022, 2:16 AM EDT
Sir RenewDate is a string type .
I have use this query not working
UserClaims.ClaimType='RenewDate' AND Convert(UserClaims.ClaimValue as Datetime) <
Convert(GETDATE() as Datetime)
RohanRank #1,548 · 1K reputationPosted May 16, 2022, 2:23 AM EDT
RohanRank #1,548 · 1K reputationPosted May 16, 2022, 2:36 AM EDT
RohanRank #1,548 · 1K reputationPosted May 16, 2022, 2:46 AM EDT
RohanRank #1,548 · 1K reputationPosted May 16, 2022, 3:17 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts