I need to display the current date and time in a menu. How can I do this?
Currently, I have
let mymenu = isc.Menu.create({
ID:"myMenu",
autoDraw:true,
width:150,
data:[
{
title: "My Menu",
keyTitle: "Current"
},
{
title: "Date ",
keyTitle: new Date(2020,5,29)
},
...
This works, but I would have to manually change the date every day. And it doesn't show time. How could I have this display the current date and time automatically
Currently, I have
let mymenu = isc.Menu.create({
ID:"myMenu",
autoDraw:true,
width:150,
data:[
{
title: "My Menu",
keyTitle: "Current"
},
{
title: "Date ",
keyTitle: new Date(2020,5,29)
},
...
This works, but I would have to manually change the date every day. And it doesn't show time. How could I have this display the current date and time automatically