title: standard format to convert string to datetime in vb.net
body: <p>string value ="15:10"
  I have to convert string value "15:10" to like this "1899-12-30 15:10:00.000" 
  i write below code is there any standard date/time format.</p>
  
  <pre><code> Private Function GetCurrentTime(ByVal dtnew As String) As DateTime
  
          Dim oaDate As DateTime
          Dim timeValue As DateTime
          Dim dtNow As DateTime
          'Final date time to be stored in the time field
  
          oaDate = DateTime.FromOADate(0)
          dtnew = String.Concat(oaDate.Year, oaDate.Month, oaDate.Day, dtnew)
          dtnew = dtnew.Replace(":", String.Empty)
          dtNow = DateTime.ParseExact(dtnew, "yyyyMMddHHmm", Globalization.CultureInfo.InvariantCulture) 'Convert.ToDateTime(dtnew).ToString("HH:mm")
          timeValue = dtNow 'New DateTime(oaDate.Year, oaDate.Month, oaDate.Day, dtNow.Hour, dtNow.Minute, dtNow.Second)
          Return timeValue
  
      End Function
  </code></pre>