Use strtotime instead of date format