Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JavaScript用の単純なテキストボックス日付マスク「mm/dd/yy」関数を探しています。jqueryに依存したり、他のタイプのプラグインである必要はありません。
どんな助けでも大歓迎です。前もって感謝します。
function validateDate(date) { var re = /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](\d\d)$/; return re.test(date); }