title: How to compare a date is in current month or not using c#
body: <p>Sorry, for my question. Actually i am not able to clarify my question for my hurry up.
  I have a table like below : </p>
  
  <p><img src="https://i.stack.imgur.com/pd4Mi.png" alt="enter image description here"></p>
  
  <p>This table is LoginHistoryTable(When a user login my application, his history insert this table according to UserId). I get all data from table as a list.</p>
  
  <p>Now i want to Know : How many times they logged in this month and the last month. </p>