473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Conversion of date format

Hi,

i need to convert a date into another date format but when i use TO_CHAR or TO_DATE key word to convert the date format the error given is:-
Error starting at line 1 in command:
update ln_si_addr_ex_support set trans_date = to_date('03:50:53 11 Jun 2007','YYYY-mm-DD HH24:MI:SS')
Error report:
SQL Error: ORA-01843: not a valid month
01843. 00000 - "not a valid month"
Jun 18 '07 #1
5 4428
debasisdas
8,127 Expert 4TB
u only need to use the conversion functions properly with correct format.

next time post what u tried to solve this.
Jun 18 '07 #2
Hi,
I need to convert one date format to another. I am using the following query but is not working, can someone suggest the reson for the query not to work.

select TO_CHAR(trans_date,'YYYY-MM-DD HH24:MI:SS') as trans_date from ln_si_addr_ex_support
Jun 18 '07 #3
debasisdas
8,127 Expert 4TB
since i dont have the table ,i tried on my local emp table .

Its working fine

1* select TO_CHAR(hiredate,'YYYY-MM-DD HH24:MI:SS') as trans_date from emp
SQL> /

TRANS_DATE
-------------------
2002-01-01 03:45:45
1981-11-17 00:00:00
1981-05-01 00:00:00


r u storing date in the table in any other format

please specify.
Jun 18 '07 #4
Hi ! i need to concat three variable which contains the date,month and year respectively, then convert these string data into a Sql format date datatype,ie 103 format !
Kindly help me !
Jul 3 '07 #5
debasisdas
8,127 Expert 4TB
Hi ! i need to concat three variable which contains the date,month and year respectively, then convert these string data into a Sql format date datatype,ie 103 format !
Kindly help me !
can you kindly post your sample code for my reference please.
Jul 3 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: nimish | last post by:
I have Month, Day and Year fields on my form. When I submit this form I want to create a valid date from all three fields before inserting into MYSQL table. I tried following:...
3
by: praba kar | last post by:
Dear All, I have doubt regarding date string to time conversion function. In Python I cannot find flexible date string conversion function like php strtotime. I try to use following type...
3
by: arijitchatterjee123 | last post by:
Hi Group, I am new with SQL Server..I am working with SQL Server 2000. I am storing the date in a nvarchar column of atable.... Now I want to show the data of Weekends..Everything is OK...But the...
1
by: Shahzad | last post by:
Dear Respected Gurus/Sirs, I would like to share your ideas and get reviews will be highly appreciated in anticipation Question No.1 I had developed a seprate audit/security database that...
1
by: Franck | last post by:
Hi, 'm gettin mad about date conversion. Here is the point. Got and add-in for Excel which call functions from a web service (on a remote server) The remote server has regional settings set...
4
by: Phillip Vong | last post by:
VS2005 in VB.NET I have 2 simple textboxes (Textbox1, Textbox2) and they both have dates. Textbox1=12/31/2006 Textbox2=12/15/2006 I need to convert these two textboxes that are in String...
10
by: =?Utf-8?B?TWlrZQ==?= | last post by:
I have a string variable containing a date formatted as YYYYMMDD For example - Dim x as string = "20070314" If I try to perform a type conversion as follows I get an error: Dim y as Date =...
1
by: David | last post by:
Hi, We use an english version windows server. The regional setings are set to French (France). Asp.Net renders and interprets the date correctly (dd/mm/yyyy). So does Sql Server (date is saved...
7
by: bruce.dodds | last post by:
Access seems to be handling a date string conversion inconsistently in an append query. The query converts a YYYYMM string into a date, using the following function: CDate(Right(,2) & "/1/" &...
2
by: RN1 | last post by:
A TextBox displays the current date (in dd/mm/yyyy format) & time when a user comes to a page (e.g. 15/10/2008 1:36:39 PM). To convert the date into international format so that the remote server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.