Home » RDBMS Server » Networking and Gateways » Adding months
Adding months [message #367847] Fri, 27 October 2000 09:03 Go to next message
Dave McAuliffe
Messages: 1
Registered: October 2000
Junior Member
Hey

I'm trying to add a number of months to the sysdate.
All I get is ORA-01843 Not a valid Month
I'm doing this through VB BTW.

I've tried the following

add_months(sysdate, 12))
add_months(trunc(sysdate), 12))
add_months(to_date(sysdate,'DD-MM-YY'),12))

I'm pretty new to this so may be overlooking something obvious. Any help is appreciated

ta
Dave
Re: Adding months [message #367856 is a reply to message #367847] Mon, 06 November 2000 03:51 Go to previous message
Indira Morishetty
Messages: 9
Registered: November 2000
Junior Member
Try doing this.
to_char(add_months(sysdate,12),'dd-mm-yy')

Thanks,
Indira Morishetty
Previous Topic: ORA-12154 : TNS: could not resolve service name
Next Topic: ORA-12505 ERROR MESSAGE
Goto Forum:
  


Current Time: Thu Apr 18 01:23:12 CDT 2024