If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > After sybase upgrade, getting Unparseable date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-10, 07:56
vikram3.r@tcs.com vikram3.r@tcs.com is offline
Registered User
 
Join Date: Aug 2009
Posts: 14
After sybase upgrade, getting Unparseable date

After sybase upgrade from 12.5 to 15,

we are getting java.lang.Exception: java.text.ParseException: Unparseable date: "YYYY-MM-DD"

SimpleDateFormat oldDateFmt = new SimpleDateFormat( oldFormat );
SimpleDateFormat newDateFmt = new SimpleDateFormat( newFormat );
Date dateObj = oldDateFmt.parse( date );

We are using jconn3.jar.

Is this an issue with code or jconn driver.? In any case, how to resolve it
__________________
Vikram RM
Reply With Quote
  #2 (permalink)  
Old 02-08-10, 15:45
AashokA4 AashokA4 is offline
Registered User
 
Join Date: Jan 2010
Posts: 2
your jconn3.jar may not be in the path where version 15 is looking.
a) change the path to use version 15
b) pass it during runtime
Reply With Quote
Reply

Tags
simpledateformat, sybase, unparseable date, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On