What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-18 19:30:04
java script print date in YYYY-MM-DD HH:MM:SS format
let date_ob = new Date(); // adjust 0 before single digit date let date = ("0" + date_ob.getDate()).slice(-2); // current month let month = ("0" + (date_ob.getMonth() + 1)).slice(-2); // current year let year = date_ob.getFullYear()... Add solution -
Other 2021-08-29 21:56:02
how to decode jwt token client side
let b64DecodeUnicode = str => decodeURIComponent( Array.prototype.map.call(atob(str), c => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2) ).join('')) let parseJwt = token => JSON.parse( b64DecodeUnicode( token.... Add solution
Best helpers
Bread
+5
Annu_tiger
+5
Webelo
+5
Des Wilson
+5
Twbrown
+5
Dreeves
+5
Xoxocrow
+5
Arash.amd
+5
Gaussler
+5
Kenny W
+5
Chris Crook
+5
Xzhu
+5
Steven Choi
+5
AndrewBC
+5
Static
+5
C. Starr
+5