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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:01:39+00:00 2026-05-28T04:01:39+00:00

Good morning, I a linking to an Oracle Data (table) through ODBC. I do

  • 0

Good morning,

I a linking to an Oracle Data (table) through ODBC. I do not have any control over how this table is design or the data is stored.

However, the data column in coming in as text data type in the following format, example: 20120110

I used the following code to convert the date in access:

CDate(Right([Example.MY_DATE],2) & "/" & Mid([Example.MY_DATE],5,2) & "/" & Left([Example.MY_DATE],4))

This converts the date to: 01/10/2012

Is this the right way to get this going?

I am getting mix results, meaning my result set on my query is not accurate, I just want to make sure my conversion method is right.

Example:

`SELECT

CDate(Right([Example.MY_DATE],2) & “/” & Mid([Example.MY_DATE],5,2) & “/” & Left([Example.MY_DATE],4)) AS Format_Date

WHERE (((CDate(Right([xample.MY_DATE],2) & “/” & Mid([xample.MY_DATE],5,2) & “/” & Left([xample.MY_DATE],4)))>#01/09/2012#)

ORDER BY

CDate(Right([Example.MY_DATE],2) & “/” & Mid([Example.MY_DATE],5,2) & “/” & Left([Example.MY_DATE],4))`

Thanks everyone!

  • 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-28T04:01:39+00:00Added an answer on May 28, 2026 at 4:01 am

    Have you tried using the ‘DateSerial’ function instead:

    Date = DateSerial(Left(MyDate, 4), Mid(MyDate, 5, 2), Right(MyDate, 2))
    

    Date Serial should convert the date to the default format for your environment e.g in the English format rather than the American format etc.

    So the SQL may look like this:

    SELECT DateSerial(Left(MyDate, 4), Mid(MyDate, 5, 2), Right(MyDate, 2)) AS Format_Date
    FROM Tablename
    WHERE DateSerial(Left(MyDate, 4), Mid(MyDate, 5, 2), Right(MyDate, 2)) > #01/09/2012#
    ORDER BY DateSerial(Left(MyDate, 4), Mid(MyDate, 5, 2), Right(MyDate, 2))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning. I have been looking all over trying to answer this question. If
Good Morning All, I have loaded over 1,300 blurbs into my client's database with
Good morning folks, I'm just that beginner in json, I have a formated data
good morning. i am not a computer scientist by education, so please overlook any
Good morning I have been running a few tests over the past couple of
Good morning. I currently have this little rule in my .htaccess RewriteEngine On RewriteBase
Good morning. I have an XML file which contains lists of warning and errors
Good morning, afternoon, evening or night (depending on your timezone). This is just a
Good morning. Take this simple scenario: I've got a NetClient that connects itself to
Good morning in my timezone. Those are simple questions , i just do not

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.