WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Conversion of US Date into German Date - Konvertierung des US-Datums in das deutsche. Version 1.0.1
Categories : Date Time, Misc Update Picture
Mark Kronsbein
Date : May 18th 1999
Grade : 2 of 5 (graded 2 times)
Viewed : 6115
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Mark Kronsbein
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?
/**************************************************************************
* Konvertierung des US-Datums in das deutsche
* Auf http://www.gabber.de/ sieht man ein Beispiel ;-))
*
* Autor: Mark Kronsbein (mk@html-design.com)
* Datum der letzten nderung: 18. Mai 1999
* Anmerkung: Der meiste Code an diesem Script stammt von
* Frdric Pierron (pierron@ext.jussieu.fr)
* Ich habe den Code nur modifiziert und bersetzt.
*
* License: GPL. Wre nett, wenn ich eine Mailbekommen wrde,
* wo das Script eingesetzt wird
*
* Conversion of US Date into German Date
* See http://www.gabber.de/ for "working" Example ;-))
*
* Author: Mark Kronsbein (mk@html-design.com)
* Last Modified Date: 18 May 1999
* NOTE: Most of this code is made by
* Frdric Pierron (pierron@ext.jussieu.fr)
* I just translated it and modified it a bit.
*
* License: GPL. Would be nice, if you mail me the URL you run this Script
*
* Original script:
* http://px.sklar.com/code-pretty.html?code_id=112
* http://px.sklar.com/code.html?code_id=112
*
* Einfach alles unten in ein File namens date.inc kopieren und dann wie folgt aufrufen:
* Just include everything below in a file called date.inc. Example call:
*
* <?
* include ("date.inc");
* print "Heute ist $tag, der $n. $monat $jahr";
* print (date( " H:i:s"));
* ?>
**************************************************************************/

/* Start von date.inc
Start of date.inc */

/* Zeitzone auf Mitteleuropische Zeit umstellen
falls der Server nicht in DE steht. Sonst auskommentieren.
If the Server is not in Germany, set the right Timezone. */

putenv( "TZ=MET");

/* Name der Tage auf deutsch */
/* Name of days in German */

$name_tag[0] = "Sonntag";
$name_tag[1] = "Montag";
$name_tag[2] = "Dienstag";
$name_tag[3] = "Mittwoch";
$name_tag[4] = "Donnerstag";
$name_tag[5] = "Freitag";
$name_tag[6] = "Samstag";

/* Name der Monate auf deutsch */
/* Name of months in German */

$name_monat[1] = "Januar";
$name_monat[2] = "Februar";
$name_monat[3] = "M&auml;rz";
$name_monat[4] = "April";
$name_monat[5] = "Mai";
$name_monat[6] = "Juni";
$name_monat[7] = "Juli";
$name_monat[8] = "August";
$name_monat[9] = "September";
$name_monat[10] = "Oktober";
$name_monat[11] = "November";
$name_monat[12] = "Dezember";


$num_tag = date( "w");
$num_monat = date( "m");

/* Test, ob der aktuelle Monat < 10 ist */
/* Test, if the current month is < 10th month */

$test = substr($num_monat,0,1);
if ($test == "0") {
$num = substr($num_monat,1,1);
$num_monat = $num;
}


$jahr = date( "Y");
$n = date( "d");
$tag = $name_tag[$num_tag];
$monat = $name_monat[$num_monat];

/* Ende von date.inc
End of date.inc */

?>



time date modified changed last getlastmod last footer
Categories : Misc, Date Time
Simple function to return the number of days in a time span between 2 given dates.
Categories : PHP, Date Time, MySQL, Databases
Bs_StopWatch is a class to measure time intervals in microseconds.
Categories : PHP, Date Time, PHP Classes
Calendars to choose a range of dates , reservation events ...
Categories : PHP, Calendar, Java Script, Date Time
Example of using the pcCalendar class, article 1468 on weberdev.com. Calendar example.
Categories : PHP, Date Time, PHP Classes, Calendar
This script allows people to add their favorite quotes to your website. This could easily be modified to be a guestbook script or comment page script.
Categories : PHP, Complete Programs, HTML and PHP, Misc
Creates three SELECT form fields: Month, Day, and Year. You give it a string which will be used to make the name for the three fields, and a number of seconds to use as the default date. If you give it blank for this value, the current date is used.
Categories : HTML and PHP, PHP, Date Time
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
Function to convert Arabic numbers into Roman Numerals
Categories : Algorithms, PHP, Date Time
Checks Date-Input from HTML-Forms and converts to YYYY-MM-DD Format for MySQL Date-Fields
Categories : MySQL, Date Time, PHP, Databases
If you want to create select buttons featuring current date this example will show you how...
Categories : Date Time, HTML and PHP, PHP
Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP, Arrays, Date Time, Databases, MySQL
function to generate calendars on the fly.
Categories : Calendar, PHP, Date Time
table calendar pretty much does what cal(1) does - prints out a calendar.
Categories : Date Time, PHP, Calendar
Change the background color of a website daily dynamically using the php date function to get the current day of the week and depending on that day, set the background color for the web page.
Categories : PHP, Date Time, Beginner Guides, Web Design