[PHP-DB] Re: Working with dates

2002-05-23 Thread Stephen Rhodes
Forget my last email. Similar but before I told you how to do it from todays date. You need to parse the $effdate. Below would only work for 1 number months. (i.e not Oct,Nov,Dec) Find where / occurs in the string and you will be laughing. Once you have those numbers in $day,$month,$year you will

[PHP-DB] Re: Working with dates

2002-05-23 Thread Stephen Rhodes
Use this: ($dateInYourForm gives the date in three months time in the form you gave below. $threeMonths = mktime(0,0,0,date("m")+3,date("d"),date("Y")); $dateInYourForm = date("d/m/Y",$threeMonths); Cheers Steve "Manuel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

[PHP-DB] Re: Working with dates

2002-05-23 Thread Yves Daemen
Parse the date, for example using explode(), en then make a new date with mktime() in combination with date(), but set $parsed_date[1]+3 "Manuel" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Can anybody help me with this? > > How do you take a known date

[PHP-DB] Re: Working with dates

2002-05-23 Thread Michael Virnstein
www.php.net/mktime "Manuel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Can anybody help me with this? > > How do you take a known date and add three month to it? > > Example: > > $effdate= "1/15/2002" > > > > - > Do