Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 hard drive internet internet explorer itunes laptop linux malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express partition password printer problem router security slow software sound trojan usb video virus vista wifi windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Oracle Error- Ora-01830??????


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Prashanti's Avatar
Computer Specs
Member with 64 posts.
 
Join Date: Apr 2006
Experience: Intermediate
10-Aug-2007, 12:56 AM #1
Oracle Error- Ora-01830??????
ORA-01830
Hi !
Back with a problem !
I am using asp.net with Oracle as backend . When I try to insert a date into a particular field in the db I get this error :

ORA-01830 date format picture ends before converting entire input string.

I searched and found out that the oracle db is not accepting the full date format i.e , dd/MMM/yyyy hh:mm:ss
where
d=date of month
M=month
y=year
h=hour
m=min
s=sec

The db is only accepting dd/MMM/yyyy . How to make it accept
dd/MMM/yyyy hh:mm:ss ????

Any help is very much appreciated.
Prashanti's Avatar
Computer Specs
Member with 64 posts.
 
Join Date: Apr 2006
Experience: Intermediate
13-Aug-2007, 06:23 AM #2
TO_DATE solved it !
Problem was solved using TO_DATE function.

The insert string needed to be something like this :

insert into <tablename> values ( TO_DATE('DateTime.Today.Date','dd-MMM-yyyy hh:mm:ss'),field2,field3..)

where TO_DATE converts the date given by 'DateTime.Today.Date' to the specified format of 'dd-MMM-yyyy hh:mm:ss' .

Note :
Datetime is a Class in ASP.NET and not connected with ORACLE.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:37 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.