Insert date/time into Oracle table

I try to insert a date/time value into an Oracle table as following:

INSERT INTO table1 (ID, StartDate) VALUES (123, '01/27/2000 3:19:00 PM')

and I got an error:

ORA-01843: not a valid month

The definition of table1 is:

Field            DatatType

ID:             number
StartDate:       Date

Thanks for your help in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

INSERT INTO table1 (ID, StartDate)
VALUES (123, to_date('01/27/2000 03:19:00 PM', 'MM/DD/YYYY HH:MI:SS PM' )

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
advancefiberAuthor Commented:
Thanks a lot.
Help for Hierarchies
Helper tables handle dimensions with complex hierarchies.

We have created the following table to store the organization hierarchy:


desired output:
           unit 111

values in  table:
name  ,   nodeid,    parent , depth
unit0    , 1    ,     1,    0
unit1   , 2 ,        1,    1
unit11   ,  3,     1,  2
unit11,    3,     2,   1
unit111   ,  4,     1,  3
unit111,    4,    2,   2
unit111,    4,     2,   1


We are unable to display the result in a hierarchical fashion . Intendation
of sub-units below the parent unit is not possible because there is no
linkage between them. Is it possible with the current structure or some
additional field like sequence no. is reqd.

Help and Reply will be highly appreciated.

Sreekumar Menon
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.