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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:53:23+00:00 2026-06-10T07:53:23+00:00

I have an output parameter in oracle called outTime of type DATE. The format

  • 0

I have an output parameter in oracle called outTime of type DATE. The format for this is set as yyyy-mm-dd and I need to be able to include the time from a table when I select into it.

I keep getting an error : date format picture ends before converting entire input string.

here is the insert into statement.

SELECT TO_CHAR(Table_Time, 'YYYY-MM-DD HH24:MI:SS') into outTime
FROM Table_One; 

the out parameter is declared as

outTime OUT DATE;

within a stored procedure in a package of other procedures.

I keep finding ways to set the format globally but I only need to set the format for this instance.

Thanks for any insight.

  • 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-10T07:53:24+00:00Added an answer on June 10, 2026 at 7:53 am

    A DATE does not have a format. A string representation of a date has a format but a DATE does not.

    If Table_Time is a VARCHAR2 (a string representation of a date) in the format yyyy-mm-dd hh24:mi:ss, then you would want to use TO_DATE to convert the string into a DATE (I assume that there is a single row in table_one in this example, otherwise the SELECT ... INTO will raise a no_data_found or a too_many_rows exception.

    SELECT TO_DATE(Table_Time, 'YYYY-MM-DD HH24:MI:SS') 
      into outTime
      FROM Table_One; 
    

    If Table_Time is a DATE, you would simply assign it to outTime

    SELECT Table_Time
      into outTime
      FROM Table_One; 
    

    When you want to display outTime, you’ll need to convert the DATE to a string representation of a date (a VARCHAR2). At that point, you can use the TO_CHAR function.

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

Sidebar

Related Questions

I have a stored procedure with an output parameter. How do I read this
I have an Oracle stored procedure that returns a BLOB in an output parameter:
I have a stored procedure in Oracle that returns result set(s) via OUT parameter(s)
We have a Procedure in Oracle with a SYS_REFCURSOR output parameter that returns the
In my database I have a stored procedure with an OUTPUT parameter of type
I am having a problem with an Output parameter in C#/Oracle. I have isolated
I am parsing an html content and have output on my screen. This website
I have this output when trying to debug Program received signal SIGSEGV, Segmentation fault
Often when writing PHP I'll have it output some HTML like this - echo
I have to improve some code where an Oracle stored procedure is called from

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.