Scala FAQ: How Do I Create New Date and Time Instances with Scala
Scala FAQ: How do I create new date and time instances with Scala? Specifically, using Scala, how do I create new date and time instances using the Date and Time API that was introduced with Java 8.
Solution: Creating dates and times in Scala (Java and Kotlin, too)
Using the Java 8 API and newer, you can create new dates, times, and date/time values. The table below provides a description of some of the new Java date/time classes you’ll use (from the java.time Javadoc), all of which work in the ISO-8601 calendar system.