• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 803
  • Last Modified:

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
0
mauler
Asked:
mauler
  • 2
1 Solution
 
objectsCommented:
you can ignore the warning.
0
 
objectsCommented:
or to get rid of it replace line with:

String tmpDate = DateFormat.format(curdate)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now