Thema: Date
Beiträge zum Thema "Date"
| Datum prüfen Stylesheet anwendenIch habe auf meiner HTML Seite eine Tabelle (div-Container)
<div class="tableitem">
<div id="tableitem_date1" class="tableitem_datea">21.05.2012</div>
<div class="tableitem_descr">Beschreibung</div>
</div>
<div class="tableitem">
[...]
|
| Prototype: Date.getFirstDayOfMonth [Flash 8]Erster Tag im Monat
// Erster Tag im Monat
Date.prototype.getFirstDayOfMonth = function() {
return ;
}
ASSetPropFlags(Date.prototype, "getFirstDayOfMonth", 1, true);
// Verwenden
datum = new Date();
ersterTag = datum.getFirstDayO [...]
|
| Prototype: Date.getQuarterOfYear [Flash 8]Quartal im Jahr
// Quartal im Jahr
Date.prototype.getQuarterOfYear = function()
{
return Math.floor(this.getMonth()/ 3)+1;
}
ASSetPropFlags(Date.prototype, "getQuarterOfYear", 1, true);
// Verwenden
datum = new Date();
trace(" [...]
|
| Prototype: Date.getMonthName [Flash 8]Monatsnamen (Bezeichnung)
// Monat (Bezeichnung)
Date.prototype.getMonthName = function(pMonat) {
return
}
ASSetPropFlags(Date.prototype, "getMonthName", 1, true);
// Verwenden
datum = new Date();
monat = datum.getMonth();
a [...]
|
| Prototype: Date.getDayName [Flash 8]Wochentag (Bezeichnung)
// Wochentag (Bezeichnung)
Date.prototype.getDayName = function(pTag) {
return
}
ASSetPropFlags(Date.prototype, "getDayName", 1, true);
// Verwenden
datum = new Date();
wochentag = datum.getDay();
// H [...]
|
| Prototype: Date.getLeapYear [Flash 8]Ermitteln von Schaltjahren
// Schaltjahr
Date.prototype.getLeapYear = function() {
return ((new Date(this.getFullYear(), 2, 0).getDate()) == 29 ? 1 : 0);
};
ASSetPropFlags(Date.prototype, "getLeapYear", 1, true);
// Verwenden
da [...]
|
| Prototype: Date.getPeriodOfYearHemisphere [Flash 8]Jahreszeiten (Nord/Süd-Halbkugel)
// Jahreszeiten für die nördliche und südliche Hemisphere
Date.prototype.getPeriodOfYearHemisphere = function(pSphere)
{
var monat = this.getMonth()+1;
var tag = this.getDate();
if (pSphere) [...]
| |
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
Regeln & Bedingungen
|