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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:06:34+00:00 2026-06-03T07:06:34+00:00

SELECT TO_DATE ( TO_CHAR (EXTRACT (MONTH FROM schedule.start_date)) || ‘-‘ || TO_CHAR (EXTRACT (DAY

  • 0
 SELECT TO_DATE (   TO_CHAR (EXTRACT (MONTH FROM schedule.start_date))
                || '-'
                || TO_CHAR (EXTRACT (DAY FROM schedule.start_date))
                || '-'
                || TO_CHAR (EXTRACT (YEAR FROM schedule.start_date))
                || ' '
                || TO_CHAR (schedule.start_time_hour)
                || ':'
                || TO_CHAR (schedule.start_time_minutes)
                || schedule.start_time_am_pm,
                'DD-MM-YYYY HH24:MI pm'
                )
   FROM table1 schedule;

In table1 the start_date field value contains the date as 14-Apr-12 12:00:00 AM, start_time_hour has the value of the hour, start_time_minutes has the value of minutes , start_time_am_pm has the value of AM or PM. I want to merge this columns into a string from that. I am going convert into date format like to_date('14-04-12 05:08 PM','DD-MM-YYYY HH:MI PM'). But it throws the error ORA-01858: a non-numeric character was found where a numeric was expected. What is the issue on this.. Can any help me how to convert into date format with my above requirment.

  • 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-03T07:06:36+00:00Added an answer on June 3, 2026 at 7:06 am
    Select to_char(schedule.start_date,  'DD-MM-YYYY HH:MI AM') 
    from table1 schedule;
    

    IF schedule.start_date is truncated at 00:00 and you have time info in the columns start_time_hour and start_time_minutes(bad design – you don’t need these columns, DATE type has time itself.) you can do this:

    Select 
      to_char(schedule.start_date + start_time_hour/24 + start_time_minutes/1440
              ,'DD-MM-YYYY HH:MI AM') 
    from table1 schedule;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query like this: select to_date(to_char(registime, 'YYYY-MM'),'YYYY-MM') as dt,count(id) as total_call from
I have following SQL: select origin,destination,to_char(to_date(substr(ship_date,1,6),'YYMMDD'), 'YYYY-MM-DD'),ship_date,trip_number, distinct ship_number from shipment a where a.scc_code
This is my code: query = SELECT DISTINCT TO_CHAR(date,'DD-Mon-YYYY')date, idNum, name FROM customer ORDER
I need something like: SELECT PARTITION_NAME, to_char(LONG_TO_TIMESTAMP(HIGH_VALUE), 'MM/DD/YYYY HH24:MI:SS') AS HIGH_VAL FROM USER_TAB_PARTITIONS WHERE
I have this query: SELECT TO_CHAR(HON.CREATE_DT,'DD-MM-YYYY') as CREATE_DT, HON.ACCOUNT_NO,(SELECT TO_CHAR(CURRENT_DATE - INTERVAL '7' DAY,
I want to select sql: SELECT year-month from table group by year-month AND order
In Oracle, you can use: SELECT to_char(sysdate, 'yyyy-mm') FROM dual; to show just the
I have a following oracle query: SELECT a.USER_ID, c.first_name, c.last_name, TO_CHAR( b.logon_date, 'MM/DD/YYYY HH:MI:SS
select COLLABNAME,DATETIME,TOTALFLOWS,SUCCFLOWS,FAILEDFLOWS from TABLE_NAME WHERE to_date(DATETIME, 'DDMMYYYY HH24:MI') BETWEEN trunc(sysdate-7) AND trunc(sysdate) AND COLLABNAME
I need your help in understanding the below query. SELECT To_date(To_char(( ( To_timestamp_tz(From_tz(Cast(l_end_date AS

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.