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.

Datumausgabe auf Deutsch

Empfohlene Antworten

Hallo zusammen,

ich will die Datumausgabe auf Deutsch haben.

Das ganze läuft auf einem Linuxrechner.

Daher nutze ich folgende Funktion:

function Gbook_File_Date($time) {

$language = @setlocale(LC_TIME, 'de_DE');

$this->mydate = strftime('%A, %d. %B %Y %R', $time);

return ($this->mydate);

}

Aber es klappt trotzdem nicht. Dabei ist doch de_DE extra für Linux.

Hat jemand ne Idee?

Danke

Hallo zusammen,

ich will die Datumausgabe auf Deutsch haben.

Meinst Du:

$today = date("m.d.y"); ?

Das ganze läuft auf einem Linuxrechner.

Irrelevant. ;-)

Daher nutze ich folgende Funktion:

function Gbook_File_Date($time) {

$language = @setlocale(LC_TIME, 'de_DE');

$this->mydate = strftime('%A, %d. %B %Y %R', $time);

return ($this->mydate);

}

Aber es klappt trotzdem nicht. Dabei ist doch de_DE extra für Linux.

Hat jemand ne Idee?

Sollte locale nicht auf dem Server direkt gesetzt sein?

gruss vom pelz

Dazu gibts bei php-faq folgenden Beitrag, aber das ist ja genau das was du gemacht hast... :-|

vielleicht hilfts trotzdem weiter

http://www.php-faq.de/q/q-datum-deutsch.html

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.