Use strtotime instead of format string to parse datetime