I want to get the current date and then assign it to a control.
I have assign the control to the script in its before control event.
It show up the date, but not the current date, instead it displayed the data of January 1st, 1970.
Here is the code of the script which I use:
Code: Select all
var tgl = new Date();
tables.ResignationForm.FormDate.value = tgl.getDate();
Thanks in advance for the help.[/code]