As discussed earlier, we can use Java libraries in Scala. Let's check it. Copy the code displayed on the screen. This code uses java.util and java.text libraries and returns the current date in the United States. Let's run the code. As you can see, the current date in the United States is printed on the screen.