dbTalk Databases Forums  

date format not recognized

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss date format not recognized in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
muhammaddzulkarnain@gmail.com
 
Posts: n/a

Default date format not recognized - 10-23-2008 , 12:09 AM






hello everyone,

i just got a problem. This is my statement:


select hostname, to_char(to_date(&date_start , 'YYYYMMDD' ||
to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily
where statistics_date between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not recognized error.
how to solve it?

Reply With Quote
  #2  
Old   
Peter Nilsson
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 12:49 AM






muhammaddzulkarn... (AT) gmail (DOT) com wrote:
Quote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?
Solve it? Who knows! But it's pretty obvious why
you're getting the error...

to_char
(
to_date
(
&date_start,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
),
'YYYY'
)

What do you think that || will produce?

--
Peter


Reply With Quote
  #3  
Old   
Peter Nilsson
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 12:49 AM



muhammaddzulkarn... (AT) gmail (DOT) com wrote:
Quote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?
Solve it? Who knows! But it's pretty obvious why
you're getting the error...

to_char
(
to_date
(
&date_start,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
),
'YYYY'
)

What do you think that || will produce?

--
Peter


Reply With Quote
  #4  
Old   
Peter Nilsson
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 12:49 AM



muhammaddzulkarn... (AT) gmail (DOT) com wrote:
Quote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?
Solve it? Who knows! But it's pretty obvious why
you're getting the error...

to_char
(
to_date
(
&date_start,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
),
'YYYY'
)

What do you think that || will produce?

--
Peter


Reply With Quote
  #5  
Old   
Peter Nilsson
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 12:49 AM



muhammaddzulkarn... (AT) gmail (DOT) com wrote:
Quote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?
Solve it? Who knows! But it's pretty obvious why
you're getting the error...

to_char
(
to_date
(
&date_start,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
),
'YYYY'
)

What do you think that || will produce?

--
Peter


Reply With Quote
  #6  
Old   
muhammaddzulkarnain@gmail.com
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 01:37 AM



On Oct 23, 1:49*pm, Peter Nilsson <ai... (AT) acay (DOT) com.au> wrote:
Quote:
muhammaddzulkarn... (AT) gmail (DOT) com wrote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?

Solve it? Who knows! But it's pretty obvious why
you're getting the error...

* to_char
* (
* * to_date
* * (
* * * &date_start,
* * * 'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
* * ),
* * 'YYYY'
* )

What do you think that || will produce?

--
Peter

it was wrong to put || in date function.. my objective actually is to
combine &date_start and &date_end into date function. i do not know to
do it


Reply With Quote
  #7  
Old   
muhammaddzulkarnain@gmail.com
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 01:37 AM



On Oct 23, 1:49*pm, Peter Nilsson <ai... (AT) acay (DOT) com.au> wrote:
Quote:
muhammaddzulkarn... (AT) gmail (DOT) com wrote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?

Solve it? Who knows! But it's pretty obvious why
you're getting the error...

* to_char
* (
* * to_date
* * (
* * * &date_start,
* * * 'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
* * ),
* * 'YYYY'
* )

What do you think that || will produce?

--
Peter

it was wrong to put || in date function.. my objective actually is to
combine &date_start and &date_end into date function. i do not know to
do it


Reply With Quote
  #8  
Old   
muhammaddzulkarnain@gmail.com
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 01:37 AM



On Oct 23, 1:49*pm, Peter Nilsson <ai... (AT) acay (DOT) com.au> wrote:
Quote:
muhammaddzulkarn... (AT) gmail (DOT) com wrote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?

Solve it? Who knows! But it's pretty obvious why
you're getting the error...

* to_char
* (
* * to_date
* * (
* * * &date_start,
* * * 'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
* * ),
* * 'YYYY'
* )

What do you think that || will produce?

--
Peter

it was wrong to put || in date function.. my objective actually is to
combine &date_start and &date_end into date function. i do not know to
do it


Reply With Quote
  #9  
Old   
muhammaddzulkarnain@gmail.com
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 01:37 AM



On Oct 23, 1:49*pm, Peter Nilsson <ai... (AT) acay (DOT) com.au> wrote:
Quote:
muhammaddzulkarn... (AT) gmail (DOT) com wrote:
hello everyone,

i just got a problem. This is my statement:

select hostname, to_char(to_date(&date_start ,
'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily where statistics_date
between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not
recognized error. how to solve it?

Solve it? Who knows! But it's pretty obvious why
you're getting the error...

* to_char
* (
* * to_date
* * (
* * * &date_start,
* * * 'YYYYMMDD' || to_date(&date_end, 'YYYYMMDD')
* * ),
* * 'YYYY'
* )

What do you think that || will produce?

--
Peter

it was wrong to put || in date function.. my objective actually is to
combine &date_start and &date_end into date function. i do not know to
do it


Reply With Quote
  #10  
Old   
Michel Cadot
 
Posts: n/a

Default Re: date format not recognized - 10-23-2008 , 12:00 PM




<muhammaddzulkarnain (AT) gmail (DOT) com> a écrit dans le message de news:
e04ca099-0977-44b4-84f4-b662db8fabee...oglegroups.com...
Quote:
hello everyone,

i just got a problem. This is my statement:


select hostname, to_char(to_date(&date_start , 'YYYYMMDD' ||
to_date(&date_end, 'YYYYMMDD')), 'YYYY')
from gen_api_performance_daily
where statistics_date between to_date(&date_start, 'YYYYMMDD') and
to_date(&date_end , 'YYYYMMDD')

when i executed the script, i got date format not recognized error.
how to solve it?
See answers to your question at:
http://www.orafaq.com/forum/t/126566/102589/

Regards
Michel




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.