What is the prebuilt javascript function that provides date and time?

The prebuilt JavaScript function that provides the date and time is `new Date()`. This function creates a new Date object that contains the current date and time.