Prototype: Date.getMonthName [Flash 8]
| Beiträge: 130 Wohnort: Berlin/Germany Registriert: Mar 2002
| 09.01.2005, 17:19
Monatsnamen (Bezeichnung)
Prototype:
ActionScript:1 2 3 4 5 | // Monat (Bezeichnung)
Date.prototype.getMonthName = function(pMonat) {
return ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"][pMonat]
}
ASSetPropFlags(Date.prototype, "getMonthName", 1, true);
|
Beispiel Aufruf:
ActionScript:1 2 3 4 5 6 | // Verwenden
datum = new Date();
monat = datum.getMonth();
aktMonatName = datum.getMonthName(monat);
trace("Monat: " + aktMonatName);
|
[Flashstar]
http://www.flashstar.de | |
| Ähnliche Beiträge zum Thema | |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
Regeln & Bedingungen
|