Rijen Juni

Rijen Juni

  • NA
  • 16
  • 7.1k

How to Mannage my DateTime

Aug 17 2015 4:01 AM
 I have code like this
 
Calendar calendar = CultureInfo.CurrentCulture.Calendar; int weekNo = calendar.GetWeekOfYear(DateTime.Now, CalendarWeekRule.FirstFullWeek, DayOfWeek.Tuesday); var tempResultsult = from p in db.Laporan where p.TanggalLapor.Year.ToString() = DateTime.Now.Year.ToString() && (calendar.GetWeekOfYear(p.TanggalLapor, CalendarWeekRule.FirstFullWeek, DayOfWeek.Tuesday)).ToString() = weekNo select p;
 
 
but it still error. The error message says && cant used in string, int how should i do ? 
 

Answers (2)