How can I get the datetime today in ionic?

Hi guys, is there a built in package on ionic to get the date and time now? Like for example, when I clicked a button, I want to get the date and time it was clicked.

new Date()

1 Like