We help IT Professionals succeed at work.
Get Started

Please help with International date formatting in VB.NET

Last Modified: 2012-06-27
I've written a licensing system in VB.NET for use with an application intended for a worldwide user base. I need the application to send a UK formatted 'registered date' string to my SQL license server, regardless of the country where the software has been installed. The SQL field that holds the date is NOT currently a datetime type. It's an nvarchar. Inside the application, when started, I need to do a date compare between the UK formatted 'registered date' on the server and the current UK formatted date on the client. Is there a way that I can force a UK format upon any date string I'm using in the application? Or, is there a simply a fundamentally better way of tackling this problem. For example...Is there any merit in setting the SQL field to a 'datetime' (which I understand is US format in SQL server) and just using the US format globally in the app? If I do this, will I then have to parse all UK formatted dates to US, before I attempt to write the date to the server?
Watch Question
Senior Engineer
Top Expert 2010
This problem has been solved!
Unlock 4 Answers and 18 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE