+ 2
How to use date_diff and date_format in php
Can you share a code in php that use date_diff or date_format or explain how to use it to help any one to understand well the date function date_diff and date_format because there is no lesson about it in the course of sololearn PHP.
2 Respostas
+ 2
https://code.sololearn.com/wFg9nJiZLmP8/?ref=app this is my own code related to the question i hope you like it
+ 3
Here's date/time function reference, you'll find date_diff & date_format information and usage examples too. If you still have difficulties after reading you can ask again here.
[date/time functions reference]
https://www.w3schools.com/PhP/php_ref_date.asp
[date_diff page]
https://www.w3schools.com/PhP/func_date_date_diff.asp
[date_format page]
https://www.w3schools.com/PhP/func_date_date_format.asp
Hth, cmiiw