Herfried,
"> The OP has a date string representing a date in a specific format, so
'CDate' is not the right joice.
I know that it is not your right joy, but I think the right method.
However when you do you mean that they have in Austria other globalization
settings so I am curious for that, can you try this and give me what it
gives as format.
Public Class Example
Public Shared Sub Main()
Threading.Thread.CurrentThread.CurrentCulture = _
New Globalization.CultureInfo("en-US")
Dim mydate As DateTime = CDate("10/16/2004")
Threading.Thread.CurrentThread.CurrentCulture = _
Globalization.CultureInfo.InstalledUICulture
MessageBox.Show(mydate.ToString)
End Sub
End Class
Where this is the question from the OP
--------------
i have a date string of format "mm/dd/yy".i want to convert it to systems
default format.how do i do that?
And I have with the above example answered any possibility in my opinion,
however tell me than what you than think when it is not.
Cor