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...
IamNatoyThatLovesYou Posted September 5, 2023 Report Share Posted September 5, 2023 Hello Everyone, just wanted to share a forum that I tested out that relates to what @Aether mentioned. You will just need to fetch a timestamp field in the table and use that instead of the GetDate()/ GetUTCDate() Quote Link to comment Share on other sites More sharing options...
autonumber Posted December 4, 2023 Report Share Posted December 4, 2023 Hi! Just to update this post, if you want to format your date field by month and year only, you use this formula: CONVERT(VARCHAR,(Month([@field:Date_]))) + '-' + CONVERT(VARCHAR,( Year([@field:Date_]))) 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.