title: VB.net Hour(Now()) Not Working
body: <p>I am trying to make a vb.net program which at a specific time that the user has chosen, the code will excecute. To do this, I need to check every minute to check every minute if the hour and minute the user has entered are matching to the current time (unless there is a better way to do this). I tried to use</p>
  
  <pre><code>Dim CurrentHour As Integer = Hour(Now())
  </code></pre>
  
  <p>But the program gives me an error message saying, </p>
  
  <blockquote>
    <p>Expression is not an array or method, and cannot have an argument list</p>
  </blockquote>
  
  <p>I am going to use a Do Loop to check, but of course to see if the two are matching, I need the current Hour and Minute</p>