Alison Posted October 16, 2018 Report Share Posted October 16, 2018 You can get current date and time in the text field after clicking on the button. In that case, you need to use the following Java Script code: <!doctype html> <html> <head> <title>Timestamp function</title> <script> var time = new Date(); function GetDateTime() { document.getElementById('MyTextField').value=time; } </script> </head> <body> <input type='text' id="MyTextField" value=""> <button onClick="GetDateTime()">Get Current date and time</button> </body> </html> Quote Link to comment Share on other sites More sharing options...
Aether Posted December 25, 2018 Report Share Posted December 25, 2018 Hello @Alison, You can stamp the time on DataPages without having JavaScripts. You may visit this link. I hope this helps ~WatashiwaJin~ Quote Link to comment Share on other sites More sharing options...
Aether Posted December 25, 2018 Report Share Posted December 25, 2018 Hi @Alison, You can also use calculated field or calculated value in getting the current time using this formula: You can also check some function reference in time/date located under "Date and Time Functions": https://howto.caspio.com/function-reference/ I hope this helps ~WatashiwaJin~ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.