I have a date of birth field on a website which is stored in unix timestamp which of course only starts are 1970.
If the user selects a date of birth before this and I try to create a timestamp using mktime() and it results in 0, but what I want is -5631511 (or whatever) so I can work out their age etc.
How can I create a minus timestamp from a given date, eg:
$day = 11
$month = 1;
$year = 1900;
Thx
JD
If the user selects a date of birth before this and I try to create a timestamp using mktime() and it results in 0, but what I want is -5631511 (or whatever) so I can work out their age etc.
How can I create a minus timestamp from a given date, eg:
$day = 11
$month = 1;
$year = 1900;
Thx
JD