📜 ⬆️ ⬇️

Give the Hindus a head start

Delved into the source of the person who was fired.

It is necessary to choose from mysql timestamp day as int.

$ tempday = explode ('-', $ row ['event_date']);
if (strpos ($ tempday [2], '0') == 0)
$ myDay = substr ($ tempday [2], 1,1);
else
$ myDay = substr ($ tempday [2], 0,2);

')

Source: https://habr.com/ru/post/28477/


All Articles