© Adam L. Davis 2020
A. L. DavisModern Programming Made Easyhttps://doi.org/10.1007/978-1-4842-5569-8_12

12. Utilities

Adam L. Davis1 
(1)
Oviedo, FL, USA
 

There are many classes, functions, or objects (sometimes called utilities) that come built-in with each programming language that can be very useful. The java.util package contains many useful classes for everyday programming. Likewise, JavaScript and other languages come with many built-in objects for doing common tasks. I am going to cover a few of these.

Dates and Times

You should never store date values as text. It’s too easy to mess up (Figure 12-1).
../images/435475_2_En_12_Chapter/435475_2_En_12_Fig1_HTML.jpg
Figure 12-1

I can has string to store date valyooz? ...

Get Modern Programming Made Easy: Using Java, Scala, Groovy, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.