How to display date+time/current user in the Text widget?

To display date+time/current user’s email in the Text widget, use the following JavaScripts:

JavaScript example for displaying today’s date and time: ${new Date().toLocaleString()}

JavaScript example for displaying user’s email address: ${doo.currentUser.email}

For more information regarding the Text widget, look at our documentation: Text widget in Tabidoo.cloud

1 Like

In addition, this instruction allows you to display the time format in relation to the format related to the country where you live. To change the format, just insert the identification of your country instead of IT

JavaScript example for displaying today’s date:
${new Intl.DateTimeFormat(‘it-IT’).format(new Date())}

1 Like