P
Paul J. Lucas
Given:
SimpleDateFormat df = "yyyy-MM-dd";
df.setLenient( false );
String s = "2007-02-04T10:45:21-08:00";
Date d = df.parse( s );
System.out.println( d );
I get:
Sun Feb 04 00:00:00 PST 2007
I want it to parse the *whole* string successfully, or fail. How to I get it to
*not* succesfully parse the given string?
- Paul
SimpleDateFormat df = "yyyy-MM-dd";
df.setLenient( false );
String s = "2007-02-04T10:45:21-08:00";
Date d = df.parse( s );
System.out.println( d );
I get:
Sun Feb 04 00:00:00 PST 2007
I want it to parse the *whole* string successfully, or fail. How to I get it to
*not* succesfully parse the given string?
- Paul