Buttons to update date and time controls



I am very new to writing java script for Nintex forms. I have been trying to research how to program a button to update a date and time control. I have multiple date and time fields and would like to put buttons next to them that update to the current date and time when clicked. I'm starting at the beginning with learning how to write out the script so if someone could provide a little tutorial on how to connect all this it would be very appreciated! I know the button needs to be connect to java script and have a client ID and the control needs to store the client ID in javascript but I can't seem to get it all connected when I use script from other posts on here. 


Thank you in advance!!! 


0 Kudos