SHARE
TWEET

Untitled

a guest Mar 25th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>JS Bin</title>
  7. </head>
  8. <body>
  9.   <div id="date"></div>
  10. <script id="jsbin-javascript">
  11. var originalDate = "2019-02-27T11:49:24";
  12. var finalDate = originalDate.split((/(t)/gi));
  13.  
  14. console.log(finalDate[0]);
  15. </script>
  16.  
  17.  
  18.  
  19. <script id="jsbin-source-javascript" type="text/javascript">var originalDate = "2019-02-27T11:49:24";
  20. var finalDate = originalDate.split((/(t)/gi));
  21.  
  22. console.log(finalDate[0]);</script></body>
  23. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top