Convert date format in PHP (without SQL)
<p>How to convert date from <code>yyyy:mm:dd</code> to <code>yyyy-m-dd</code> and <code>yyyy:mm:dd</code> (without leading zero for the month) to <code>yyyy-m-dd</code> (with leading zero to month)?</p>
