fork download
  1. Imports System
  2. Imports System.IO
  3. Imports System.String
  4. Imports System.DateTime
  5.  
  6. Public Class Test
  7. Public Shared Sub Main()
  8. Console.WriteLine(ConvertDateFormatTY13(""))
  9. End Sub
  10.  
  11. Private Function ConvertDateFormatTY2013(ByVal pstrDateToParse As String) As Date
  12. Dim parsedDate As Date
  13. If DateTime.TryParse(pstrDateToParse, parsedDate) Then
  14. Return parsedDate
  15. End If
  16.  
  17. If DateTime.TryParseExact(pstrDateToParse, New String(1){"MMddYYYY"}, New CultureInfo("en-US"), DateTimeStyles.None, parsedDate) Then
  18. Return parsedDate
  19. End If
  20.  
  21. Return HighDate
  22. End Function
  23. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/6vxpfN/prog.vb (17,104) : Error VBNC30451: Could not resolve the name 'CultureInfo'
There were 1 errors and 0 warnings.
Compilation took 00:00:00.7242770
stdout
Standard output is empty