pstein Posted July 27, 2017 Share Posted July 27, 2017 How do I output the current timestamp with a format DD.MM.YYYY HH:MM:SS The web page https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date does not show it (an example). Thank you Peter Link to comment Share on other sites More sharing options...
dsonesuk Posted July 27, 2017 Share Posted July 27, 2017 You would get individual parts of the timestamp https://www.w3schools.com/jsref/jsref_obj_date.asp getFullYear(), getMonth(), etc, then produce a string in the format you require. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now