Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 278859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T01:18:22+00:00 2026-05-12T01:18:22+00:00

We are adding French support to an older VB6 app. The original developer used

  • 0

We are adding French support to an older VB6 app.

The original developer used a mix of date formats when writing to the database, but SQL didn’t seem to mind as it was all in English. (March 31, 2009 or 2009-03-31 etc…)

When you try running the app on a French machine, you get:

[-2147217913][Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting character string to smalldatetime datatype.

I believe the problem is the SQL looks like set xxxx=’31-mars-2009′ and the SQL Server we have can understand english but not french.

The original fix was to use Format(string,”short date”) which seemed to fix it, but I don’t think that’s fixing it 100% of the time. (Note: I think short date works correctly, there was a text box that had to be converted to a string.)

I played around with SET LANGUAGE and that didn’t seem to help (but I may not know what I’m doing.)

I believe the “most correct” solution is to format all dates numeric using YYYYMMDD. Is that correct?

(the app will never need to be ported to any other languages, just English and French.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T01:18:23+00:00Added an answer on May 12, 2026 at 1:18 am

    There are 2 unambiguous dateformats that you can use with SQL Server YYYYMMDD is one of them. Things can get a little tricky when dealing with other languages. In SQL Server, you can set a different language for each login. It’s the login’s default language that dictates how dates are interpreted. Unfortunately, the default language may not necessarily correspond to the client computer’s regional setting.

    This is why I don’t allow users to enter dates in to text boxes. Instead, I give them a DatePicker control which does all of my validation for me. The DatePicker control has a .Value property that is a Date datetype. Then, when sending dates to SQL Server, you simply use the Format function (with style set to YYYYMMDD).

    For more reading on this:
    Setting a standard date format for SQL Server

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 213k
  • Answers 213k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The compiler problem is because you've got '/u8221' instead of… May 12, 2026 at 10:29 pm
  • Editorial Team
    Editorial Team added an answer Look at this error: Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: compilation error: file… May 12, 2026 at 10:29 pm
  • Editorial Team
    Editorial Team added an answer The link text specifically says"A base class destructor should be"...… May 12, 2026 at 10:29 pm

Related Questions

I'm internationalizing an application into many different languages, and the following languages must be
I have an ASP.Net website which uses a MySQL database for the back end.
In solution explorer of asp.net application we are adding something in References section for
We are currently working on a new version of our main application. one thing

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.