This content has been marked as final. Show 2 replies
format only accepts Date as input and not a long. use this:
String time = dateFormat.format(date);
Edited by: kimatrix on Feb 25, 2008 4:55 PM
SimpleDateFormat does not have a method 'format' that takes only a long as a parameter. 'Cannot resolve symbol' means that the variable or method you attempted to use does not exist.
That is the API for SimpleDateFormat. Read it and you'll see that the format() method requires 3 parameters: a Date, a StringBuffer, and a FieldPosition