Skip to content

How to initialize a widget date with the current date

Create a calculated field with following JS code :

my_date = new Date();  
currentTime = Math.round(my_date.getTime()/ 1000);  
RMPApplication.setVariable("my_widget_date_variable",currentTime);