Use fr-FR culture, and dates of the form: DDMMYYYY : Date Format « Date Time « VB.Net






Use fr-FR culture, and dates of the form: DDMMYYYY

  


Imports System
Imports System.Globalization

Class Sample
   Public Shared Sub Main()
      Dim result As Boolean
      Dim datetimeVal As DateTime


      Dim ci As CultureInfo
      
      ci = New CultureInfo("fr-FR")
      result = DateTime.TryParse("4/7/2004 12:34:56", ci, DateTimeStyles.None, datetimeVal)
      Console.WriteLine(datetimeVal.ToString())

   End Sub
End Class

   
    
  








Related examples in the same category

1.Output time in format: 'h:mm:ss tt'Output time in format: 'h:mm:ss tt'
2.To Long Date, Long Time and Universal TimeTo Long Date, Long Time and Universal Time
3.Show Date in different formatShow Date in different format
4.Different Date in dddd and MMMMDifferent Date in dddd and MMMM
5.Assign Date value in format: #5/5/1967 6:41:00 AM#
6.DateTime Format French
7.Is input value a Date