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.
您好如何将字符串格式日期转换为数字格式?
$bd=$row[dateofb]; o/p:08 august 2012
但是如何将上述刺痛转换为 08/08/1212
尝试这个。该date功能与strtotime:)
date
strtotime
echo date('d/m/Y', strtotime($bd));