how to find dates in a string in js
var str = 'On the 03/09/2015 I am swiming in a pool, that was build on the 27-03-1994';
var res = str.match(/\d{2}([\/.-])\d{2}\1\d{4}/g);
document.getElementById('out').value = res;var str = 'Test Client wants to reschedule your call from 2021-02-18 06:30:00+00:00 to 2021-02-18T07:00';
var res = str.match(/\d{2}([\/.-])\d{2}\1\d{4}/g);
document.getElementById('out').value = res;
Also in JavaScript:
- disable textbox jquery
- jquery label with text
- redux fetch data using axios
- console.log clear screen
- read xlsx file in angular 5
- javascript convert in a string the items of an array
- js num to string with leading 0
- react on hover reveal
- react native run on device command line
- integer to array javascript
- how to update react app
- jquery empty ul
- jquery change picture source
- get textarea value jquery
- how to validate an email address in javascript
- javascript modal
- how to make modules structure like lodash
- json example list of objects
- how to get duplicate values from array in javascript
- jquery cast to string
- node red reverse proxy for ui to root
- how to add headers to the server response node js
- javascript loop through class elements
- javascript key pressed enter