This is what I'm using but it doesn't seem to work.
$offer_expire = strtotime($item->expiry_date);
expiry_date is coming from an xml file and it's in a regular date/time format. Shouldn't strtotime() convert it to unix so I can save it in my $offer_expire variable?