Changeset 228 for trunk/phpbms/common
- Timestamp:
- 04/06/07 15:42:10 (5 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/common/javascript/common.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/common/javascript/common.js
r225 r228 240 240 if(year<100) year+=2000; 241 241 break; 242 case "Dutch, NL": 243 sep="-"; 244 day=parseInt(sDate.substring(0,sDate.indexOf(sep)),10); 245 month=parseInt(sDate.substring(sDate.indexOf(sep)+1,sDate.indexOf(sep,sDate.indexOf(sep)+1)),10)-1; 246 year=parseInt(sDate.substring(sDate.lastIndexOf(sep)+1),10); 247 if(year<100) year+=2000; 248 break; 242 249 } 243 250 thedate=new Date(year,month,day); … … 276 283 case "English, UK": 277 284 sep="/"; 285 month=thedate.getMonth()+1; 286 if(month<10) month="0"+month; 287 day=thedate.getDate(); 288 if(day<10) day="0"+day; 289 sdate= day+sep+month+sep+thedate.getFullYear(); 290 break; 291 292 case "Dutch, NL": 293 sep="-"; 278 294 month=thedate.getMonth()+1; 279 295 if(month<10) month="0"+month;