Skip to content

Commit e31fd2f

Browse files
clientscript.js
Date Timestamp - onLoad
1 parent 06c5594 commit e31fd2f

File tree

1 file changed

+5
-0
lines changed
  • Client-Side Components/Client Scripts/Date Timestamp - onLoad

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function onLoad(){
2+
var now = new Date(); // Shows current date and time
3+
var nowFormatted = now.toISOString(); // Format : yyyy-MM-ddTHH:mm:ss:sssZ
4+
g_form.setValue('u_date', nowFormatted); // Replace with your field name
5+
}

0 commit comments

Comments
 (0)