pastebin

Paste Search Dynamic
Recent pastes
str match
  1. const str = '2023-03-01';
  2. const [year, month, day] = str.match(/(d{4})-(d{2})-(d{2})/).slice(1, 4);
  3. year;
  4. month;
  5. day;
Parsed in 0.004 seconds