Hi, i am searching for a code snippet to add a datetime like in this example:
https://samples.dundas.com/Dashboard/c397551a-e1f0-48e2-bb22-fa0def388063?e=false&vo=viewonly
Couldn´t find it as an example or in the script API. Thanks !
Hi, i am searching for a code snippet to add a datetime like in this example:
https://samples.dundas.com/Dashboard/c397551a-e1f0-48e2-bb22-fa0def388063?e=false&vo=viewonly
Couldn´t find it as an example or in the script API. Thanks !
Thanks! Used it in a little more advanced style now
var currentdate = new Date();
var month = currentdate.getUTCMonth() + 1;
var datetime = currentdate.getUTCDate() + “.” + month.toString() + “.” + currentdate.getFullYear() + " " + currentdate.toLocaleTimeString();
labelDatetime.labelText = datetime;
That is the great thing about the samples they get you started on your own path to making something that is the best to fit your needs.