Ramco Ramco

Ramco Ramco

  • 461
  • 2.9k
  • 406.1k

Search Records

Jul 17 2022 4:12 AM

Hi

  I have below data and want to search in another table using Linq

Id = vid

vDate =  Convert.ToDateTime(mDate).ToString("dd-MM-yyyy");

vTime = Convert.ToDateTime(mTime).ToString("HH:mm");

I want to add 1 Hr to Vtime and store in another variable say toTime.

and then search record in another table on the confition ID + vDate and between vTime & toTime. If record found it should give message Duplicate

Thanks


Answers (1)