PHP Classes

File: usage

Recommend this page to a friend!
  Classes of Ovunc Tukenmez  >  Find date  >  usage  >  Download  
File: usage
Role: Example script
Content type: text/plain
Description: Sample Usage
Class: Find date
Add to or substract day from date
Author: By
Last change: -
Date: 14 years ago
Size: 390 bytes
 

Contents

Class file image Download
<?php
// parameters: "date", "integer", "+" or "-"

// Examples...

// To find tomorrow's date
$result = new finddate(date("d.m.Y"), "1", "+");

// To find yesterday's date
$result = new finddate(date("d.m.Y"), "1", "-");

// To find the date which is on 50 days after from 12.10.2000
$result = new finddate("12.10.2000"), "50", "+");

// Show date
echo $result->newdate;
?>

For more information send a message to info at phpclasses dot org.