Print out time & date in JS

I want to print the date of today. But import java.time.LocalDateTime doesn’t work.

Please help.

You can just use new Date()

1 Like