User:Ohconfucius/test/MOSNUM dates.js: Difference between revisions

Content deleted Content added
incomplete
further alignment
Line 3:
 
// Feedback and constructive criticism are welcome
// importScript("User:Ohconfucius/formatgeneral.js");
 
function Ohc_unambiguous_dates(){
Line 342:
if (txt.value.indexOf(summary) == -1) {
if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) {
txt.value += " |; ";
}
txt.value += summary;
Line 733:
txt.value = spork_yyyymmdd_to_dmy(txt.value); // from User:Plastikspork/datetools.js
 
Ohc_remove_leading_zeros_from_nonlinked_dates ();
Line 742 ⟶ 741:
txt.value = spork_yyyymmdd_to_mdy(txt.value); // from User:Plastikspork/datetools.js
 
 
Ohc_remove_leading_zeros_from_nonlinked_dates ();
}