Below code will help you to get full year in next JS.
function year() {
const date = new Date();
const year = date.getFullYear();
return (
<>
<div>Current year is {year}</div>
</>
)
}
export default year;
Below code will help you to get full year in next JS.
function year() {
const date = new Date();
const year = date.getFullYear();
return (
<>
<div>Current year is {year}</div>
</>
)
}
export default year;
For further actions, you may consider blocking this person and/or reporting abuse
Talha Ahsan -
Ritesh Shukla -
Jackson Dhanyel Santin -
Louis Austke -
Top comments (0)