Help with date calculator
Posted: Wed May 31, 2006 9:04 pm
trying to calculate between two dates and want to format the form input in the same format as the function does - so that I can replace $today below with something like: $date_in
my script will take care of the rest if I can config it to use any date input instead of
any/all help appreciated!
thanks in advance.mc
Code: Select all
getdate()my script will take care of the rest if I can config it to use any date input instead of
Code: Select all
$today=getdate()thanks in advance.mc
Code: Select all
<?php
//get today's date
$today = getdate();
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];
$lyear = $year - 105;
?>