How to get the system dtae and time using scripts

Hi Experts,

 

My requirement is to add open time field in rfc Implementation table.

Which will take the system date as open time.

Could you help me to implement this in script library.

It's flow is like when a change is moved from approval to implementation the open time field should get update by system time. The script we have to write in WPOPT_PopulatingData.

 

Following is the script I have tried and the error I got.

wpoptFile.open_time=tod();

ERROR ReferenceError: tod is not defined at char 1

 

Any Suggestions are appreciated.

 

Thanks & Regards,

Sandhu Mol