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

hey...

ich hab hier ein datum in php bzw mysql und wollte zu diesem datum (also ein geburtsdatum) immer jeweils die passende kw haben, sprich wenn ich zb. den 24.01 habe dann wäre es dieses jahr die 4 kw und nächstes jahr vllt erst die dritte...so und dieses datum soll dann mit dem aktuellen verglichen werden...

falls die woche dann passt soll die ganze sache ausgegeben werden...

sobald die woche um ist soll die datumseinträge durch die aktuellen ausgetauscht werden....

Hallo,

echo date("W", mktime(0, 0, 0, 7, 1, 2000));

Das W bedeutet, das date die ISO-8601 Wochennummer des Jahres ausgibt.

http://de.php.net/manual/de/function.date.php

Gruß Jaraz

"select WEEKOFYEAR(datum) from bla" sollte dir die kalenderwoche zurückgeben - zumindest ab mysql 4.1 :)

s'Amstel

Hallo,

echo date("W", mktime(0, 0, 0, 7, 1, 2000));

Das W bedeutet, das date die ISO-8601 Wochennummer des Jahres ausgibt.

http://de.php.net/manual/de/function.date.php

Gruß Jaraz

ja das wusste ich...aber ich willd as ja so haben das der mir datum aus der mysql datenbank nimmt und zu diesem datum dann die kw raussucht...

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.