On 05-Mar-01 Nicklas af Ekenstam wrote:
> Hi!
>
> I wrote this simple function to return the current date minus supplied
> number of years:
>
> function get_birthdate($age_in_years) {
>
> You, obviously, call it like this: echo get_birthdate(1);
> Which would return a datestring that
Hi!
I wrote this simple function to return the current date minus supplied
number of years:
function get_birthdate($age_in_years) {
// get the current timestamp into an array
$timestamp = time();
$date_time_array = getdate($timestamp);
$hours = $dat
2 matches
Mail list logo