Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この日付を変換するにはどうすればよいですか?
2009-12-21 10:38:07
22 December 2009 - 10:38 ?のようなより読みやすい日付に
22 December 2009 - 10:38
dateこの関数はstrtotime次のように使用できます。
date
strtotime
$strDate = "2009-12-21 10:38:07"; echo date('d F Y - H:i', strtotime($strDate));
// Prints: July 1, 2000 is on a Saturday echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));