Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

verwende folgende Formeln:

aktmonat = month(Date)

aktyear = year(Date)

monatsname = MonthName(WeekDay(Date))

Heute ist der 14.10.2009

bei der Variablen "aktmonat" wird der Wert "10" ausgegeben (richtig)

bei der Variablen "aktyear" wird der Wert "2009" ausgegeben (richtig)

bei der Variablen "monatsname" wird der Wert "April" ausgegeben (falsch)

Wieso?? Egal welche Schreibweise ich für das Datum nehme.

14-10-2009 oder 10-14-2009.

Gibt es eine schon vordefinierte Funktion??

Danke Azubi Tigernte

in welcher skriptsprache willst du das den haben ????

bei PHP:

<?php

$dater = date("F j, Y, g:i a");

echo $dater."\n";

$tag = date("d");

$monat = date("m");

$jahr = date("Y");

echo $tag." ".$monat." ".$jahr."\n";

$wishDate = 21052009; //hier musst du dann das datum aufteilen

$t_wd=21;

$m_wd=5;

$j_wd=2009;

$tag_wD = date("d", mktime(0, 0, 0, 5, 21, 2009));

$monat_wD = date("F", mktime(0, 0, 0, 5, 21, 2009));

$jahr_wD = date("Y", mktime(0, 0, 0, 5, 21, 2009));

echo $tag_wD." ".$monat_wD." ".$jahr_wD."\n";

//oder

$tag_wD2 = date("d", mktime(0, 0, 0, $m_wd, $t_wd, $j_wd));

$monat_wD2 = date("F", mktime(0, 0, 0, $m_wd, $t_wd, $j_wd));

$jahr_wD2 = date("Y", mktime(0, 0, 0, $m_wd, $t_wd, $j_wd));

echo $tag_wD2." ".$monat_wD2." ".$jahr_wD2."\n";

?>

Bearbeitet von Micha82

wäre nicht schlehct gewesen noch zu erwähnen welche sprache. sorry.

asp, vbscript.

gut... da kann ich dir nicht helfen.... :)

danke für die erklärung. aber wie bekomme ich dann den richtigen monat heraus? gibt es eine andere funktion??

Moin,

ich tippe mal auf "MonthName(Date)", allerdings wie immer ungetestet.

Reinhold

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.