Login   Register  
PHP Classes
elePHPant
Icontem

File: usage

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2007-10-17 04:24
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;
?>