title: vb.net display date field without time
body: <p>I am new to vb.net so apologies in advance if im asking a glaringly obvious one.</p>
  
  <p>I have declared the following code in my pageload, it displays todays date in a label however it was displaying the date and time.</p>
  
  <p>It originally said DateTime but I changed it to just Date in the hope this would work but it continued to display the time also.</p>
  
  <p>I have used the left operator for now to trim it down to 10 characters however I would like to know what I should have done if id only wanted the date and not the time without having to trim the results.</p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
  
      Dim dtNow As Date = Date.Now
      time_stamp_entryLabel1.Text = Left(dtNow.ToString, 10)
  End Sub
  </code></pre>