I have a problem with an injectin’ js code activity in UIPath

Some days ago, i’ve been trying to run an injection js in an activity that push a function on an input detected by its ID. The code is rigth. But when i pulled it in the activity, it doesn’t ran in the pg.
here’s my code in the UIPath’s activity.
code

What do you think that what’s the problem? Any tip? (The code is about write the date of today in another format that is required on the pg)