WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
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 Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
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
Submit Site
Forex Trading Online forex trading platform

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 : Date Validation using JavaScript. Intended to use it as checkdate() from PHP.
Categories : Java Script, Date Time, PHP Update Picture
Joao Rochate
Date : Jan 16th 1999
Grade : 4 of 5 (graded 9 times)
Viewed : 23609
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Joao Rochate
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

<script Language="JavaScript">
// Since there wasn't an example like this on the site
// I decided to share it with all of you.
// This is a non-optimized example, just to save some time
<!--function checkdate(d,m,y)
{
var yl=1990; // least year to consider
var ym=2010; // most year to consider
if (m<1 || m>12) return(false);
if (d<1 || d>31) return(false);
if (y<yl || y>ym) return(false);
if (m==4 || m==6 || m==9 || m==11)
if (d==31) return(false);
if (m==2)
{
var b=parseInt(y/4);
if (isNaN(b)) return(false);
if (d>29) return(false);
if (d==29 && ((y/4)!=parseInt(y/4))) return(false);
}
return(true);
}



Calendars to choose a range of dates , reservation events ...
Categories : PHP, Calendar, Java Script, Date Time
Local Time clock and Server time usign PHP and JavaScript
Categories : PHP, Java Script, Date Time, Beginner Guides
enhanced date picker with jcript checking for a dynamic date input
Categories : PHP, Java Script, Date Time, Calendar, Arrays
Local-to-user date and time display regardless of time zone or where the website's server is located
Categories : PHP, Date Time, HTML and PHP, Java Script
PHP Calendar
Categories : PHP, Calendar, Date Time, Java Script, CSS
Calendar using Date function
Categories : HTML and PHP, PHP, Date Time, Calendar
Select with current month
Categories : PHP, HTML and PHP, Date Time, Arrays
PHP4 session helper HTML file.
Categories : PHP, Java Script, HTML and PHP, Sessions
checkdate -- Validate a gregorian date/time
Categories : PHP, PHP Functions, Date Time
Dynamic Calender in PHP, Javascript and HTML.
Categories : PHP, Java Script, HTML and PHP, Calendar
Clock at Status Bar
Categories : Java Script, HTML, Date Time
How to display a PHP variable value from a selectbox without reloading the page by merging PHP and Javascript variables.
Categories : PHP, Java Script, Variables
Building dynamic menus with PHP & MySQL (ADO), JavaScript and CSS
Categories : PHP, Databases, MySQL, Java Script, User Interface
a class that uses microtime() to provide easy calculation of elapsed times
Categories : Date Time, PHP, PHP Classes
Simple Javascript CSS Digital Clock
Categories : Java Script, Date Time, CSS, Beginner Guides, Web Design