// // WWW.FATAL.WAP.SH // //var sFormat = 1; // 1 January , 1970 //var sFormat = 2; // 01 January, 1970; not implemented yet //var sFormat = 3; // 1 Jan., 1970; not implemented yet //var sFormat = 4; // 01 Jan., 1970; not implemented yet //var sFormat = 5; // Vineri, 29 April, 2005 var sFormat = 6; // Vineri, 29 April, 2005 // ----- STOP EDITING ----- var aDayLongNames = new Array( 'Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata' ); var aMonthLongNames = new Array( 'Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie' ); var oToday = new Date(); var iDay = oToday.getDay(); var iDate = oToday.getDate(); var iMonth = oToday.getMonth(); var iYear = oToday.getFullYear(); var sDate = null; switch (sFormat) { case 1:// 1 January 1970 sDate = iDate + ' ' + aMonthLongNames[iMonth] + ' ' + iYear; break; case 2: break; case 3: break; case 4: break; case 5: // Friday, 29 April, 2005 sDate = aDayLongNames[iDay] + ', ' + iDate + ' ' + aMonthLongNames[iMonth] + ', ' + iYear; break; case 6: // Friday, April 29, 2005 sDate = aDayLongNames[iDay] + ' ' + iDate + ' ' + aMonthLongNames[iMonth] + ', ' + iYear; break; default: } document.write(sDate);