Java provides a rich set of APIs for formatting data. The data may include simple values such as a numbers or objects such as strings, dates, and other types of objects. In this chapter, you will learn
Java 8 provides a Date-Time API to work with dates and times, and to format and parse them. The Date-Time API was discussed in Chapter 12. If you are writing new code that is related to dates and times, you are advised to use the new Date-Time API. This section is provided in case you need to work with legacy code that uses old ways of formatting dates and time that existed before ...