Hello,
I have the following in my form, but when I print the form, the time is printing incorrectly. It reads 4/18/2021 @ 7:6:38. What is wrong with the script?
var oNow = new Date();
this.rawValue = (oNow.getMonth() + 1) + "/" + oNow.getDate() + "/" + oNow.getFullYear() +
" @ " + oNow.getHours() + ":" + oNow.getMinutes() + ":" + oNow.getSeconds();
Your help is greatly appreciated.
Solved! Go to Solution.
Views
Replies
Total Likes
Let's assume that the formatting is wrong (single digits?). Here is how I would approach this with a DateTime field
Pattern: date{MM/DD/YYYY} '@' time{HH:MM:SS}
Results in
Views
Replies
Total Likes
Let's assume that the formatting is wrong (single digits?). Here is how I would approach this with a DateTime field
Pattern: date{MM/DD/YYYY} '@' time{HH:MM:SS}
Results in
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies