0

Hi all,

I need a more elegant way to do the convertion between different cultures

First I parse the field into the default culture (en-US) like this,

Dim Format As New System.Globalization.CultureInfo("en-US", True)
Dim sFecha As Date = System.DateTime.Parse(me.TextBox1.Text.Trim, Format, Globalization.DateTimeStyles.None)

What I need is a way to show in another textbox in another culture, obviously I have the option to do a: TextBox2.Text = Format(me.TextBox1.Text.Trim, "dd/MM/yyyy") but I need to be configurable to any culture selected by the user.

I hope you can help me...

Thanks

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by culebrin
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.