Deprecation warning

When I compile my code (JDK 1.5.0_06) I receive the following message:

MainFile.java:221 warning: [deprecation] toLocaleString in java.util.Date has been deprecated
            string tmpDate = curdate.toLocaleString().trim();

There is an accent under the . after curdate.

Do I need to change API's, if so how, or can I compile and ignore the deprecation messages.

Thanks
maulerAsked:
Who is Participating?
 
objectsCommented:
or to get rid of it replace line with:

String tmpDate = DateFormat.format(curdate)
0
 
objectsCommented:
you can ignore the warning.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.