Page 1 of 1

strtotime()

Posted: Tue Feb 20, 2007 5:38 am
by psychotomus
i'm trying to convert the date 6/18/1983 to time() format. how do i go about doing this?

my code failed

Code: Select all

$dob = strtotime("$day $month $year",);

Posted: Tue Feb 20, 2007 5:40 am
by Kieran Huggins
sounds like you would probably want mktime()

Posted: Tue Feb 20, 2007 5:47 am
by psychotomus
thanks for the quick reply. your most helpfull =)