javascript get 24 hour time
var date = new Date();
console.log(date.toLocaleString('en-GB'));
var options = { hour12: false };
console.log(date.toLocaleString('en-US', options));
Also in JavaScript:
- tinymce menubar hide
- if else jquery click function
- button click function in js
- create json model online
- capitalize
- javascript input onchange get value
- clear cache javascript
- javascript int values
- .filter js
- swagger editor
- get a div text content and store in a variable js
- setinterval javascript
- print random string from an array to screen in javascript
- input not detecting text
- javascript string replace
- save object in localstorage shows [object Object]
- how to push mutual array elements in an array nested loop javascript
- js dom for mobile
- function expression vs function declaration
- navlink activestyle not working
- copy php array to javascript
- angularjs find and update object in array
- get value in maps loop using enzym
- scroll to top