To construct a java.util.Date from a String, I can use this:<br><br>Date myDate = (new SimpleDateFormat()).parse(myString);<br><br>To construct a java.sql.Date from a String, I can use this:<br><br>Here's my problem.<br><br>If myString is equal to something like this:<br>"Tue Aug 01 00:00:00 EDT 2000"<br>(this is the output of a particular java.util.Date) or if myString is equal to something like this:<br>"2000-08-01 00:00:00.0"<br>(that's the output of a particular java.sql.Date)<br><br>I'm getting a parsing exception. Obviously the date isn't formatted correctly; the thing is, I'm not sure what a string is supposed to look like so that in can be instantiated as a Date.<br><br>If somebody knows what a date should look like, please let me know... if somebody can test it out and make sure it works, that would be even better (please! my rear end is grass if this doesn't work flawlessly by Friday morning 8AM). Thanks so much. <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence."
light the world, and bring depth to the silence."