Created
May 11, 2017 09:43
-
-
Save jetfire21/db208676fb8030d9ba831b78d1902e32 to your computer and use it in GitHub Desktop.
PHP examples with dates
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 | |
// Преобразует дату '28 Jan 2017' в '2017-01-28', a mysql работает с форматом 0000-00-00 00:00:00 | |
echo date("Y-m-d",strtotime("28 Jan 2017")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment