<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Manual ----- Calendar Generator</title>
<style type="text/css">
<!--
.style4 {
font-size: 12px;
font-family: Tahoma;
}
-->
</style>
</head>
<body>
<p class="style4"><strong> Date Manipulator <gobinathm at gmail dot com> </strong><strong> </strong></p>
<p class="style4"> The class can be used to get the next month date using a Date parameter & it has other function where you can check whether the date you entered is Greater than the server date or not <br />
<br />
Here is the Example create by implementing the class. </p>
<blockquote>
<p class="style4">1. <?php<br />
2. include_once("DateAdd.class.php");<br />
3. echo "<b><u>Get Next Month Date</u></b><br>";<br />
4. $date = "1-25-2005";<br />
5. $dateFormat="m d Y";<br />
6. $strSeperator="-";<br />
7. echo "Parameter Date : ".$date."<br>";<br />
8. $dateAd = new DateCK($date,$dateFormat,$strSeperator);<br />
9. $tmpDate=$dateAd->MonthDate("Month");<br />
10. echo "Next Month Date : ".$tmpDate."<br>";<br />
11. $date = "01-12-2005";<br />
12. $dateFormat="m d Y";<br />
13. $strSeperator="-";<br />
14. echo "<br><b><u>Check The date Whether its greater than server date or not</u></b><br>";<br />
15. $dateCk = new DateCK($date,$dateFormat,$strSeperator);<br />
16. $result=$dateCk->DateCheck();<br />
17. echo "Your Date : ".$date;<br />
18. echo "<br>Server Date :".date("m-d-Y")."<BR>"; <br />
19. if($result){<br />
20. echo "The date is Greater than Server Date";<br />
21. }<br />
22. else{<br />
23. echo "Your Date is Less than Server Date";<br />
24. }<br />
<span class="style4">25. ?></span><br />
</p>
</blockquote>
<p> <span class="style4"><strong>
Line 2 :</strong> Includes the Calendar Class to this script <strong><br />
</strong>
<strong>
Line 8 :</strong> Create an object of theDate Manipulator Pass the necessary parameters<br />
<strong>Line 9 :</strong> Call to the Function which will compate and get the next month date <strong><br />
Line 15 : </strong>Create an object of theDate Manipulator Pass the necessary parameters<strong><br />
Line 16 :</strong> Call the function which compare the date <strong><br />
</strong></span></p>
<p class="style4">Active Link: <a href="http://gobinath.com/Date%20Manipulator/example.php">http://gobinath.com/Date%20Manipulator/example.php</a></p>
<span class="style4">Alternative Download Link :<a href="http://gobinath.com/Date%20Manipulator/Date%20Manipulator.zip">http://gobinath.com/Date%20Manipulator/Date Manipulator.zip</a>
</span>
<p class="style4"> </p>
</body>
</html>