Getting error on

when i am using in place of in ignition scripting function the button which i have created in the vision client is not working.

Actually the place where i am changing it it just update the database and when the database is updated it give me the output in the window but the database is not updating and when i am using the correct date and time is not coming

Well, without seeing the script or the error, it's going to be difficult to give advice.