title: DateTime in VB.NET and C#
body: <p>I have two questions:</p>
  
  <ol>
  <li><p><code>Date</code> and <code>DateTime</code> : Are they different or same in VB ?</p></li>
  <li><p><code>DateTime</code> can be assigned Nothing in VB, where as it cannot be assigned null in C#. Being a structure it cannot be null. So why is it being allowed in VB ?</p></li>
  </ol>
  
  <p>---VB.NET-----</p>
  
  <pre><code>Module Module1
  
      Sub Main()
          Dim d As Date = Nothing
          Dim dt As DateTime = Nothing
  
          d = CType(MyDate, DateTime)
  
  
      End Sub
  
      Public ReadOnly Property MyDate As DateTime
          Get
              Return Nothing
          End Get
      End Property
  
  End Module
  </code></pre>
  
  <p>---C#.NET-----</p>
  
  <pre><code>class Program
      {
          static void Main(string[] args)
          {
              DateTime dt = null;//compile time error            
          }
      }
  </code></pre>