Revision c4e13bb2
Von Bernd Bleßmann vor fast 9 Jahren hinzugefügt
js/common.js | ||
---|---|---|
70 | 70 |
// 31122014 -> 12.04.2014 |
71 | 71 |
// 12312014 -> 12/31/2014 |
72 | 72 |
// 31122014 -> 31/12/2014 |
73 |
|
|
73 |
|
|
74 | 74 |
if (input_name.value.match(/^\d{8}$/)) { |
75 | 75 |
input_name.value = input_name.value.replace(/^(\d\d)(\d\d)(\d\d\d\d)$/, "$1" + seperator + "$2" + seperator + "$3") |
76 | 76 |
} else if (input_name.value.match(/^\d{6}$/)) { |
... | ... | |
90 | 90 |
var month = today.getMonth() + 1; |
91 | 91 |
var year = today.getYear(); |
92 | 92 |
if( day.length == 1 && day < 10) { |
93 |
day='0'+day;
|
|
93 |
day='0'+day; |
|
94 | 94 |
}; |
95 | 95 |
if(month<10) { |
96 | 96 |
month='0'+month; |
... | ... | |
100 | 100 |
input_name.value = day + seperator + month + seperator + year; |
101 | 101 |
} else { |
102 | 102 |
input_name.value = month + seperator + day + seperator + year; |
103 |
}
|
|
103 |
} |
|
104 | 104 |
}; |
105 | 105 |
} |
106 | 106 |
|
Auch abrufbar als: Unified diff
whitespace cleanup