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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:45:01+00:00 2026-06-10T00:45:01+00:00

I have a Oracle table where there is one date-time field. On select query

  • 0

I have a Oracle table where there is one date-time field.
On select query i am able to get all the field values but not timefield value in my .net application.

select abc.Id, abc.Name, abc.When from details abc where abc.Id='"+1234+"'

Could anyone suggest me.

  • 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-10T00:45:02+00:00Added an answer on June 10, 2026 at 12:45 am

    The format of the returned DATE field from Oracle depends upon your default NLS settings in the database.

    Oracle stores dates (and times) in an internal representation and when you select the date values you can then format them as you need. An official Oracle explaination is here.

    To force the format you can explicitly convert the date to a string representation using:

    select abc.Id, 
           abc.Name, 
           TO_CHAR(abc.When, 'DD-MON-YYYY HH24:MI:SS') AS when 
      from details abc 
     where abc.Id='"+1234+"'
    

    If you are ONLY wanting the time portion of the WHEN column then:

    select abc.Id, 
           abc.Name, 
           TO_CHAR(abc.When, 'HH24:MI:SS') AS when 
      from details abc 
     where abc.Id='"+1234+"'
    

    This will then return it as a string rather than a date and time which may or may not be OK for you depending upon what you then want to do with it.
    The format you choose for the date and time could be any of the Oracle date and time formats, see here.

    Hope it helps…

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

Sidebar

Related Questions

I have a table TIME_TABLE on Oracle 10.6. There is a field called Start_Date
I have to get data from Oracle Table in which I have one datefield
I have a table with a DATE column with time (as usual in Oracle
I have two tables with a many-to-one relationship. (Oracle) **Table: PARENT** Field: A (PK)
Possible Duplicates: Is there an Oracle SQL query that aggregates multiple rows into one
Have two triggers on a table. One trigger is executed when there is a
I am using Oracle and I have a table with 1000 rows. There is
I have an ORACLE table with a few million rows of data. One of
I have only one column roll number in my oracle table. Lots of data
I have three tables in oracle db as newitems, itemdetails, ticketitems table. Some dummy

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.