S
sympatico
have the following code:
Dim dd, mm, yy, sDate As String
Dim dDate, dDateF As Date
Dim Format As New System.Globalization.CultureInfo("fr-FR", True)
dDate = Today
dd = CStr(dDate.Day)
mm = CStr(dDate.Month)
yy = CStr(dDate.Year)
sDate = dd & "/" & mm & "/" & yy
dDateF = System.DateTime.P****(sDate, Format,
Globalization.DateTimeStyles.None)
I'm expecting to have a date in dDateF with the french format but I get the
US one!
How to solve it ?
Dim dd, mm, yy, sDate As String
Dim dDate, dDateF As Date
Dim Format As New System.Globalization.CultureInfo("fr-FR", True)
dDate = Today
dd = CStr(dDate.Day)
mm = CStr(dDate.Month)
yy = CStr(dDate.Year)
sDate = dd & "/" & mm & "/" & yy
dDateF = System.DateTime.P****(sDate, Format,
Globalization.DateTimeStyles.None)
I'm expecting to have a date in dDateF with the french format but I get the
US one!
How to solve it ?