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

Anyone?, Plzzzz, this is driving me crazy!!

!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.