Open
Description
In the getting started guide with Next.js, I discovered this error under the query and list posts section and fixed it with a function as shown below. It was possible as I passed the data in the function.
function getCurrentDate(date) {
return new Date(date)
}
JSX
<p className="text-xs mb-2 text-purple-950 dark:text-purple-200">{getCurrentDate(post.pubDate)?.toDateString()}</p>
Metadata
Metadata
Assignees
Labels
No labels