Link to home
Start Free TrialLog in
Avatar of MWilliamsBolton
MWilliamsBolton

asked on

Convert Date in ASP.Net (VB) depending on browser language

I have a text box that takes in a date string. I need to check that the date is in the right format and convert it to a date type.

The users are in US and UK (and possibly other countries) and I want the server procedure to take that into account.

Does anyone have a fully international VB function that does this? (I am thinking that the server has knowledge of the lanuguage of the browser ..?)
ASKER CERTIFIED SOLUTION
Avatar of nepaluz
nepaluz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can drastically reduce that by removing "lots" of redundant code, but serves me perfect.
Avatar of MWilliamsBolton
MWilliamsBolton

ASKER

Although I have not implemented it yet, I can see it is exactly what I needed. Thank you.
The pleasure is all mine. Let us know when you have implemented it whether it serves your purpose (or needs a tweek!)