×

Please give details of the problem

Skip to content

How to initialize a widget date with the current date

Create a calculated field with following JS code :

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