date().toisostring().slice(0 10) giving wrong result
//Add Z in the end for getting the correct value with local timezone
var a = new Date("June 08, 2018 Z");
var res = a.toISOString().slice(0, 10);
console.log(res);
Also in JavaScript:
- create a link javascript
- styles in react native
- javascript check if string ends with
- parse integer javascript
- perform a function on each element of array javascript
- unique array javascript es6 Map
- jquery toggle show hide
- js remove escape characters from json
- react native status bar
- likert scale javascript code
- discord.js create unexipable invite
- console.log javascript
- try/except js
- js remove key from object
- how to get array from object in javascript
- add key to json
- jquery scroll to position
- how to add links in react js
- create element javascript with id
- js convert obj to array
- keyword new js
- next js shared hosting without node js
- how to give a person a role by id in discord.js
- bookshelf insert multiple rows