View Single Post
Old 09-22-2004, 05:28 AM   #3 (permalink)
crazycousinjim
Crazy
 
Location: Copenhagen, Denmark
Eeew SWING, I am so glad I am done with programming classes. Like oblar said watch out about where you your initialize and set your variables (date is set after you use it). Also, you are trying to cast a SimpleDateFormat to a String which will not work. You will want to do something like this:

SimpleDateFormat myDateFormat = new SimpleDateFormat ( "MM/dd/yy" );
date = myDateFormat.format( today );

I also don't think the toString on a Date will give you a nicely formatted date, instead, I beleive it will return a Long representing the number of milliseconds since the epoch. That should get you back on track a bit.
crazycousinjim is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54