How can I get the current date in nuxt from the server?

Viewed 645

I was doing some code tests, but I need to get the current time from the server to run the tests.

In javascript you could do something like: new Date (); To get the date from the client, but in nuxt to get it from the server side I can't think of how I can do it.

1 Answers
Related