Guest User

Untitled

a guest
Aug 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. VB.NET - any string to date conversion
  2. DateTime myDate =
  3. DateTime.ParseExact("2009-05-08 14:40:52,531",
  4. "yyyy-MM-dd HH:mm:ss,fff",
  5. System.Globalization.CultureInfo.InvariantCulture)
  6.  
  7. Dim format() As String = {"dd-MM-yy", "dd/MM/yy"}
  8.  
  9. Dim myDate As DateTime = DateTime.ParseExact("2009-05-08 14:40:52,531",format,
  10. System.Globalization.CultureInfo.InvariantCulture))
Add Comment
Please, Sign In to add comment