title: datetime variable with extra hour and custom format as datetime not string
body: <p>This is so simple but i am not able to figure out how to do it, please excuse my ignorance. </p>
  
  <p>I would like a datetime variable to be current datetime + 1 hour in the format "yyyy-mm-dd HH:mm:ss"</p>
  
  <p>I have tried this so far (dotnetfiddle.net) and when i assign it to the datetime variable the date is changed to slashes instead of hypen. </p>
  
  <pre><code>Imports System
  
      Public Module Module1
          Public Sub Main()
              Dim tet As String = Datetime.Now.AddHours(1).ToString("yyyy'-'MM'-'dd hh:mm:ss")
              Dim expiryTime As DateTime = DateTime.ParseExact("2009-05-08 14:40:52,531", "yyyy-MM-dd HH:mm:ss,fff",
                                             System.Globalization.CultureInfo.InvariantCulture)
              Console.WriteLine(convert.todatetime(tet))
              Console.WriteLine(tet)
              Console.WriteLine(Datetime.Now.AddHours(1))
          End Sub
      End Module
  </code></pre>
  
  <p>As per one of the comments I have used parseExact and i still see the date with slashes instead of hypen</p>
  
  <p><a href="https://i.stack.imgur.com/ZOBtd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZOBtd.png" alt="screenshot"></a></p>