Last active
December 12, 2015 09:39
-
-
Save sivaprabug/4753695 to your computer and use it in GitHub Desktop.
Changing the date format using php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo date("Y M d", strtotime("20130222")); | |
echo "<br/><br/>"; | |
echo date("Y/m/d", strtotime("20130222")); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment