title: How would I output only yyyy only in vb.net? I ultimately want to be able to subtract
body: <p>I want to be able to subtract only 'yyyy' in my script. For example, starting with the year 2014, I want to be able to subtract the current year (right now being 2019, next year being 2020, and so on). With 2019 being the current year, I would like to get 5 as my output.</p>
  
  <p>Here is what I have tried so far:</p>
  
  <pre><code>        Module Test
          Public Module DateAndTime
            Sub Main()
              Dim startYear As Int = 2014
              Dim currentYear As Date = #2019#
              currentYear As Int = 2019
              mfgYear As Int = currentYear - startYear 
              Console.WriteLine(mfgYear)
            End Sub
          End Module
          End Module
  </code></pre>
  
  <p>I am an extremely new person to vb.net, so I apologize for the poor attempt at the code above. Any help would be greatly appreciated.</p>