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 7755025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:27:48+00:00 2026-06-01T12:27:48+00:00

set dateformat dmy select isdate(’31/1/2012′) I thought by going into Change the format of

  • 0
set dateformat dmy
select isdate('31/1/2012')

I thought by going into Change the format of numbers, dates, and times in Windows Control Panel that I wouldn’t have to SET DATEFORMAT DMY in sql?

So I made the change, omitted the set statment, and the isdate is still failing, what am I missing?

  • 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-06-01T12:27:49+00:00Added an answer on June 1, 2026 at 12:27 pm

    In SQL Server 2012 you can use TRY_PARSE and specify a culture (e.g. en-gb). You can read about TRY_PARSE here:

    http://msdn.microsoft.com/en-us/library/hh213126(v=sql.110).aspx

    Much safer, of course, to use an unambiguous date format in the first place, and avoid all the culture nonsense. You can have the application convert user entry before it ever sees the database, or just avoid string input altogether – with a calendar control or drop downs you can dictate a safe format like YYYYMMDD and not have to worry about regional, language or dateformat settings – never mind trusting that all users are entering d/m/y vs. m/d/y…

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

Sidebar

Related Questions

i would like to set the date format of all the dates in my
I have a query like this SET QUOTED_IDENTIFIER OFF SET DATEFORMAT 'mdy' INSERT INTO
So I can set the date format on the Calendar Extender to it displays
SET @v1 := SELECT COUNT(*) FROM user_rating; SELECT @v1 When I execute this query
I am trying to set the date format of the date picker element, but
I need set DateFormat for the time as 12 hour clock , I don't
Is there a way to set the default DateFormat class used for parsing strings
When trying to get a string for the current date using DateFormat.getDateInstance().format(calendar.getTime()) it keeps
According to this documentation, http://jqueryui.com/demos/datepicker/#option-altFormat I can set a different date format for the
I need to determine if a set of dates contain two different weeks. For

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.