Create time to be able to check against current time
Posted: Wed Mar 28, 2012 11:28 am
Hello, I am doing a birthday reminder, with the month and the day of the birthday I need to make a time with the current year for this year's birthday.
How to make a time on a variable as a timestamp with those variables to be able to check against the current time and see the time difference between the two, I already have a function to check between time differences but it parses a time in the format of timestamp so I need to create a timestamp with $month, $day and $year.
Thanks.
Code: Select all
$month="January";
$day="5";
$year="2012";
Thanks.