2018-02-07から1日間の記事一覧
以下の例ではyyyymmdd形式で入力された日付をyyyy/mm/ddに変換している function checkDate(date) { let targetDate = (date).replace(/[^0-9]/g, ''); if (targetDate.length == 8) { let tempDate = targetDate.match(/([0-9]{4})([0-9]{2})([0-9]{2})/); …
以下の例ではyyyymmdd形式で入力された日付をyyyy/mm/ddに変換している function checkDate(date) { let targetDate = (date).replace(/[^0-9]/g, ''); if (targetDate.length == 8) { let tempDate = targetDate.match(/([0-9]{4})([0-9]{2})([0-9]{2})/); …