Date.Parse : Date « System « VB.Net by API






Date.Parse

  
 
Public Class Tester
    Public Shared Sub Main
        Dim testDate As String
        Dim results As New System.Text.StringBuilder

        ' ----- Test an invalid date.
        testDate = "Febtember 43, 2007"
        If (IsDate(testDate) = True) Then _
           results.AppendLine(Date.Parse(testDate).ToString)

        Console.WriteLine(results.ToString())

    End Sub

End Class

   
    
  








Related examples in the same category

1.New Date(Int year, Int month, Int day)
2.New Date(Int year, Int month, Int day, Int hour, Int minute)
3.Date.AddDays
4.Date.AddMilliseconds
5.Date.AddMonths
6.Date.AddYears
7.Date.DayOfYear
8.Date.Millisecond
9.Date.ToLongDateString
10.Date.ToLongTimeString
11.Date.ToOADate
12.Date.ToShortDateString
13.Date.ToShortTimeString
14.Date.ToString
15.Date.ToUniversalTime
16.Date.op_Subtraction